I want to migrate my app from mongodb to pouchdb/couchdb for the syncing. But I am lost. My app has 20 collections in a mongo database. One collection holds the users, who can only view content they created in the other collections, using their ids. I implemented my own user management system. Now, with 'one database per user', do i have to create 19 databases for each user or put everything into one database?
1 Answers
0
votes
Since CouchDB 1.6.1 does not support permission on document level, you have 4 options as I see it:
To use fork of Couch DB called rCouch - here
Wait for CouchDB 2.0 that will merge the codebase of rCouch and CouchDB and allow you to use user permission on document level
- Use Couchbase and Couchbase sync gateway with PouchDB that will allow you to define rights per documents
- Go with one db per user in CouchDB
Good luck with whatever you choose. Couchbase sync gateway in my personal opinion is not easy.