You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Chris Anderson (JIRA)" <ji...@apache.org> on 2010/06/24 19:38:51 UTC

[jira] Commented: (COUCHDB-807) authentication cache (user docs cache)

    [ https://issues.apache.org/jira/browse/COUCHDB-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882237#action_12882237 ] 

Chris Anderson commented on COUCHDB-807:
----------------------------------------

the users_db test is still failing for me:

# Assertion failed: e.error == "unauthorized"
# Assertion failed: /conflict/.test(e.reason)

Is this related to this patch? Do we need to finish applying it?

Chris

> authentication cache (user docs cache)
> --------------------------------------
>
>                 Key: COUCHDB-807
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-807
>             Project: CouchDB
>          Issue Type: Improvement
>         Environment: trunk
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>             Fix For: 1.0
>
>         Attachments: auth_cache.patch, auth_cache_2.patch
>
>
> Currently, in order to authenticate an incoming request, each authentication handler will read a user doc from the _users DB.
> By default, 3 authentication handlers are defined (default.ini), which means we can have 3 _users DB lookups (besides 3 DB open and close operations).
> Taking into account that this is done for each incoming HTTP request, for very busy servers this current behaviour might be overkill.
> The following patch adds a new gen_server which implements an authentication cache and keeps the _users DB open all the time, so that cache misses and refreshes are as quick as possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.