开发者

Any good document-oriented DB for Windows desktop besides MongoDB, etc?

I've been searching for a document-oriented DB that for a Windows desktop program. MongoDB seems to be the best one so far, because it's smaller (11MB) and simpler when compared to CoachDB (which is another option but it seems to be more complex and the download size is almost 50MB), but unfortunately, on 32-bit Windows the database size limit in MongoDB is 2GB, and they don't intend to fix this limit anytime.

Do you have any recommendation? Requireme开发者_运维问答nts:

  1. Open source;
  2. schema-less, in BSON/JSON format;
  3. Easy to deploy to a windows machine.

Many thanks!


I'm just curious.. Why would you need a non-relational database for a desktop application. I mean, these things are designed for high-availability clusters and a really large amount of data, both of which are irrelevant for desktop apps where you would usually have just one user at a time and not so large dataset.

What I would use if I were you is an embedded database like HSQLDB or SQLite.

Now, if you want make it schema-less for simplicity, well just create your tables only with columns id long and data varchar

And then serialize/deserialize your objects to and from JSON yourself when accessing the data.

You can see a really easy way to do the JSON stuff here:

JSON Serializer for arbitrary HashMaps in Voldemort

Note: The question on link above is Voldemort-specific, but the answer I received isn't and could be applied here as well (assuming you are using Java, if not there has to be an easy way to do so in your language, too).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜