Theoretically, are Document store and key-value store the same?
-
I found this article http://news.dice.com/2013/02/21/why-my-team-went-with-dynamodb-over-mongodb/ Which said the author shifted their MongoDB which, roughly speaking stored data similar to json files, to DynamoDB, which is a key-value store, roughly speaking a dictionary type of data structure. I didn't think it would be possible to convert json type data into a simple hash table.. So my question is: Is any type of json data convertable to key-value data? If yes why does document store database exist when in fact only abstraction libraries from key-value to document store shold be existing?
-
Answer:
No they are not the same. Although both are types of NoSQL databases, Document stores are much more than simple KV stores. The major difference between the two is that - the data (values in k-v store) is opaque to the store, where as the data (documents in document store) is transparent to the store. Roughly, you can think of the document store as another layer over the simple k-v store. As the data is transparent to the store, document stores can index the fields of documents, enabling the user to query not just by the primary key (key for the k-v store) but also by the documents' contents. Regarding your question on JSON data. Well yes, you can always have your k-v store assign a key to each JSON document and retrieve using the primary key. But you won't be able to look into (and query) by the fields in the JSON document.
Saswat Padhi at Quora Visit the source
Related Q & A:
- Why different key exhange techniques for SSL key exchange?Best solution by Information Security
- How to store different values with the same key in memcache?Best solution by stackoverflow.com
- How can I implement an atomic incr and decr on top of an eventually consistent key-value store?Best solution by Stack Overflow
- how do I sort dictionaries by value then by key?Best solution by Stack Overflow
- What is the best key-value database?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.