incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Bryan <>
Subject Re: Multi User Question
Date Sun, 12 Feb 2012 02:34:03 GMT
Could you explain what you mean about loading the user doc? Do you mean you
load it at your application layer and then use it to filter your other
On Feb 12, 2012 1:25 PM, "Mark Hahn" <> wrote:

> I'm doing something similar in one database.  I had to ignore couch's
> built-in user system and roll my own.  Couch's built-in permission control
> is too limited.  I found it simple to create a doc type of 'user' and save
> the doc id in cookies.  Then I keep a list of permissions to other docs in
> my user doc.  Then on every access I load the user doc and the use the
> permissions to control the db lookups (view keys).  This is no more complex
> than what I used to do in mysql.
> I know other people have used one db per user, but I found that too
> complex.  How would you do replication?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message