[GH-ISSUE #73] One database per user versus Crypto Pouch #781

Open
opened 2026-04-21 22:01:20 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @fredguth on GitHub (Jan 6, 2019).
Original GitHub issue: https://github.com/jo/couchdb-best-practices/issues/73

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?

Originally created by @fredguth on GitHub (Jan 6, 2019). Original GitHub issue: https://github.com/jo/couchdb-best-practices/issues/73 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?
Author
Owner

@jo commented on GitHub (Apr 3, 2022):

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.

<!-- gh-comment-id:1086857721 --> @jo commented on GitHub (Apr 3, 2022): 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.
Author
Owner

@fredguth commented on GitHub (Apr 4, 2022):

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?

<!-- gh-comment-id:1087365907 --> @fredguth commented on GitHub (Apr 4, 2022): 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?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/couchdb-best-practices#781
No description provided.