4 ms·
just a simple question, why would you use this instead of, say, php+mysql ?
by tmanx 13y ago
just a simple question, why would you use this instead of, say, php+mysql ?
- daleharvey 13y agoMy 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.
- BaconJuice 13y agoHi daleharvery quick question, if application is working fully offline, how is it syncing across all devices?
- daleharvey 13y agoIt is able to work offline, but if a connection is available it syncs data (obviously the syncing doesnt work if there is no connection)
- tmanx 13y agoso 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?
- daleharvey 13y agoClose but not quite, PouchDB is the database, you never need to be online to use it and it isnt queuing writes, its doing them locally. The ability to sync is to let you use the same data across various devices.
- hcho 13y agoSo 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.