Live data from Hacker News

Show HN: PouchDB - The JavaScript database that syncs

pouchdb.com

21–30 of 42 posts

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

#21
post #20

just a simple question, why would you use this instead of, say, php+mysql ?

My main reason is for web applications that work fully offline and sync their data to all my devices.

Writing custom code to do that on a mysql stack is very hard.

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

#22

a-la Cassandra, but under NodeJS?) I'm Jack's total lack of surprise!))

Its not really like cassandra, which has functionality aimed towards managing and querying huge volumes of data. The main feature here is the syncing, which is reasonably unique to the CouchDB world

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

#24
post #20

just a simple question, why would you use this instead of, say, php+mysql ?

My main reason is for web applications that work fully offline and sync their data to all my devices. Writing custom code to do that on a mysql stack is very hard.

Hi daleharvery quick question, if application is working fully offline, how is it syncing across all devices?

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

#25
I've been keeping an eye on PouchDB for a while; it looks like a lot of fun. How does authentication with the Couch server work, though? I don't see anything on the FAQ or after a brief perusal. CouchDB's apparently lax attitude toward security years ago was what kept me away, but I've always hoped/assumed that it improved since then. Has it?

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

#26

I'm not too familiar with Couch, but as I understand it caches views and updates them. Does Pouch do something similar, or does the query function filter all the documents in the database?

Currently PouchDB views do a full table scan, there is an open bug to do incremental views more inline with CouchDB - https://github.com/daleharvey/pouchdb/issues/99

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

#27

I've been keeping an eye on PouchDB for a while; it looks like a lot of fun. How does authentication with the Couch server work, though? I don't see anything on the FAQ or after a brief perusal. CouchDB's apparently lax attitude toward security years ago was what kept me away, but I've always hoped/assumed that it improved since then. Has it?

CouchDB had some quirks related to user accounts as it has the added burden of trying to be an application server as well as a database server.

With PouchDB a lot of the application server logic doesnt apply and you can use CouchDB as a private data server that requires any connection to be authenticated, in the example we use basic auth but other methods are available and none of the security quirks with 'couchapps' apply.

And yes it is a lot of fun :)

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

#28

Earlier quoted context omitted.

My main reason is for web applications that work fully offline and sync their data to all my devices. Writing custom code to do that on a mysql stack is very hard.

Hi daleharvery quick question, if application is working fully offline, how is it syncing across all devices?

It is able to work offline, but if a connection is available it syncs data (obviously the syncing doesnt work if there is no connection)

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

#29

Earlier quoted context omitted.

Hi daleharvery quick question, if application is working fully offline, how is it syncing across all devices?

It is able to work offline, but if a connection is available it syncs data (obviously the syncing doesnt work if there is no connection)

so what you're saying is, say you're working on your tablet/mobile/pc with an intermittent connection, it will continue working and update the db when a connection becomes available? is this the main benefit compared to the solution mentioned earlier?

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

#30

Earlier quoted context omitted.

My main reason is for web applications that work fully offline and sync their data to all my devices. Writing custom code to do that on a mysql stack is very hard.

Hi daleharvery quick question, if application is working fully offline, how is it syncing across all devices?

So you are on your iPad on a train. Your train goes into tunnel, you lose connection. The application still works because your data is saved in PouchDB.

You exit the tunnel, you gain connectivity PouchDB syncs your data to the CouchDB on the server. Other devices can now sync from the server.

Post reply on HN