couchdb-best-practices icon indicating copy to clipboard operation
couchdb-best-practices copied to clipboard

One database per user versus Crypto Pouch

Open fredguth opened this issue 6 years ago • 2 comments

I am used to the "one database per user" pattern, but I say that one can prevent using one database per user and accomplish per document access permission with crypto pouch. How would that be? Could you elaborate?

fredguth avatar Jan 06 '19 22:01 fredguth

Yes, this is indeed a possibility. One thing to keep in mind, though: replication performance is a little slow when using filters. So having one giant database for all users would require each user to do filtered replication.

jo avatar Apr 03 '22 12:04 jo

Several applications in the SaaS business model may have one-db-per-tenant with several users (team members) sharing the same db and controlling access via crypto pouch. I guess this could avoid filtered replication, but I guess the possible down sides of #76 can still happen. I am wondering about custom replication, as you suggested. Is there documentation on this kind of replication?

fredguth avatar Apr 04 '22 10:04 fredguth