couchdb - Using PouchDB with MongoDB -



couchdb - Using PouchDB with MongoDB -

i've never used couchdb. want utilize pouchdb on client app i'm not sure if can integrated mongodb because pouch designed used couchdb. although api written in php i'm not using sort of rest api in couchdb connect db.

is there equivalent of pouchdb can used mongodb? or going nowhere?

pouchdb contributor here. :) question lot, , it's understandable, given popularity of mongodb.

the short reply is: no, there's no way pouchdb can plug existing mongodb database. might want seek meteor.js instead.

the long reply couchdb , mongodb not equivalent, , in particular couchdb designed bottom-up used synchronization. there's a write-up jan lenhardt explains how works. part of magic of pouchdb/couchdb sync comes design, mongo not have.

in fact, if pouchdb used mongo backend (which not outside of realm of possibility; we back upwards redis , riak), not able utilize existing database as-is, since pouchdb need reconstruct revision-handling schema on mongo. hence have rewrite app utilize pouchdb/couchdb api.

update: pouchdb back upwards mongo-like query language, via pouchdb-find plugin.

mongodb couchdb pouchdb

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -