Live data from Hacker News

Show HN: PouchDB - The JavaScript database that syncs

pouchdb.com

41–42 of 42 posts

Re: Show HN: PouchDB - The JavaScript database that syncs

#41

Earlier quoted context omitted.

Somewhere between IE support not being a hugely requested feature and that the limitations and speed of localStorage wouldnt make a very useful database. I think support will likely pop up at some point, it isnt very hard to write a new adapter, but right now I would rather focus on making it work very well in modern browsers.

I'm not sure how well localStorage would even work to be honest... as a key/value store though... prefixing "pouchdb_" + KEYNAME as the localstorage key would probably work. Notifications would probably be the biggest issue, I don't know pouch very well. I just know that IE8 will probably be pretty relevant for another 2-3 years or so, and IE9 for a couple years after that. I don't like it any more than anyone else,…

Actually we do use localStorage for one thing, they support notifications :) IndexedDB (nor webSQL) have change notifications so we also do writes to a localStorage flag to make sure change notifications go through tabs.

Re: Show HN: PouchDB - The JavaScript database that syncs

#42
post #35
post #34

Earlier quoted context omitted.

> With PouchDB a lot of the application server logic doesnt apply How do I keep one user from accessing another user's data?

By giving each user their own database :)

Sadly it's not possible to have CouchDB make that happen for you! You can very easily allow unauthenticated requests to create users, but there's no way to create those per-user databases without writing some trusted code that runs separately from CouchDB.
Post reply on HN