How to store json data in jquery?

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

Was this solution helpful to you?

Just Added Q & A:

Find solution

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.