Re:Moving Away from NoSQL: Why Size Matters and Small is Bet...
by jchrisa on Thursday November 11, 2010 @05:01PM
(#1895465)
Yes that is what IndexedDB is for. We are working on BrowserCouch, a JavaScript library to "emulate" CouchDB on top of IndexedDB.
The big thing none of the HTML5 offline primitives provide is synchronization. Local storage is great, but in the HTML5 world it is still the application developer's responsibility to take data from the server and persist it to the client. For very simple use cases this is fine, but as soon as you want to allow collaborative edits to large data sets when users are disconnected, you'll end up implementing something that looks like CouchDB anyway. If you use the real thing (or BrowserCouch, when that is ready) you get synchronization for free.
Isn't that what HTML5 offline storage and indexeddb are supposed to solve? Installing couchdb, spidermonkey, erlang and friends seems a bit overkill in my opinion, especially on a mobile device.