5 ms·
In the former case you're creating a query (similar to SQL insert) that puts data into the database. You can then take advantage of indexing, sharding, durabili
by coffeemug 14y ago
In the former case you're creating a query (similar to SQL insert) that puts data into the database. You can then take advantage of indexing, sharding, durability guarantees, caching, a specialized query language, and all the other benefits of a database system.
In the latter case you're creating a data structure in the host language (which of course is immensely useful, but completely different).
- ebbv 14y agoMy mistake, from the demo I thought this was just creating a JSON object, and there was no actual backend database.
- coffeemug 14y agoRight. The demo implements the backend database in Javascript, so you can run real queries against it. (Still, the whole thing is confusing and I'll make it much, much better) slava @ rethink -- I was responsible for the tutorial