Folkert van Heusden
Folkert van Heusden

Reputation: 534

NoSQL with key/value/value

I'm looking for a NoSQL database with the simplicity and speed of kyoto cabinet that allows me to store 2 values per key. Also with a Java API. I looked at http://nosql-database.org/ but am a bit overwhelmed by the number of choices so I was hoping that people here could advise me (preferrably open source as my application will be open source as well).

What I'm trying to achieve is: store a data-"value" + a count-value with a hash-key. To elaborate:

Any suggestions?

Upvotes: 0

Views: 247

Answers (1)

Folkert van Heusden
Folkert van Heusden

Reputation: 534

0x69's idea point me in the right direction.

Now my hash + count and hash + data are in the same table, but the hash for count is prefixed with 'c' and the data-one with a 'd'.

This method enabled me to use kyoto cabinet for it. KC has transaction-support which takes away all the hassle of implementing journalling myself.

Upvotes: 1

Related Questions