Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3344040
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:01:26+00:00 2026-05-18T01:01:26+00:00

Currently I’m in the process of evaluating CouchDB for a new project. Key constraint

  • 0

Currently I’m in the process of evaluating CouchDB for a new project.

Key constraint for this project is strong privacy. There need to be resources that are readable by exactly two users.

One usecase may be something similar to Direct Messages (DMs) on Twitter. Another usecase would be User / SuperUser access level.

I currently don’t have any ideas about how to solve these kind of problems with CouchDB other than creating one Database that is accessable only by these 2 users. I wonder how I would then build views aggregating data from several databases?

Do you have any hints / suggestions for me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:01:26+00:00Added an answer on May 18, 2026 at 1:01 am

    I’ve asked this question several times on couchdb mailing lists, and never got an answer.

    There are a number of things that couchdb is missing.

    One of them is the document level security which would :

    • allow only certain users to view a doc
    • filter the documents indexed in a view on a user level permission base

    I don’t think that there is a solution to the permission considerations with the current couchdb implementation.

    One solution would be to use an external indexing tool like lucene, and tag your documents with user rights, then issue a lucene query with user right definition in order to get the docs. It also implies extra load on your server(s) (lucene requires a JVM) and an extra delay for the data to be available (lucene indexing time … )

    As for the several databases solution, there are language framework implementations that simply don’t allow to use more then one databases ( for instance couch_potato for Ruby ).

    Having several databases also means that you’ll have several replication processes if your databases are replicated.

    Also, this means that the views will be updated for each of the database. In some cases this is better then have huge views indexed in a single database, but it also means that distinct users might not be up to date for a single source of information ( i.e some will have their views updated, other won’t). So you cannot guarantee that the data is consistent for all users.

    So unless something is implemented in the couch core in order to manage document level authorizations, CouchDB does not seem appropriate for managing data with privacy constraints.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently my web.config has this: <appSettings> <add key=UserName /> <add key=DBServer /> <add key=DBUserName
Currently we have a project with a standard subversion repository layout of: ./trunk ./branches
Currently my AJAX is working like this: index.php <a href='one.php' class='ajax'>One</a> <div id=workspace>workspace</div> one.php
Currently im having this for displaying my statusmessages: <?php while($showSe = mysql_fetch_array($stringUSS)) { ?>
Currently I'm storing the settings for my custom addins in the registry but this
Currently if i have dependency project opened, then maven use it instead of specified
Currently createPopup() is only supported in IE (See http://help.dottoro.com/ljsxcrhv.php ). Is there a universal
I want use html5's new tag to play a wav file (currently only supported
Currently on some operations I have to delete the old data and insert new
Currently I insert a new relationship by everytime checking, if it doesn't exist: unless

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.