couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe Manana (JIRA)" <>
Subject [jira] Updated: (COUCHDB-807) authentication cache (user docs cache)
Date Tue, 22 Jun 2010 21:51:53 GMT


Filipe Manana updated COUCHDB-807:

    Attachment: auth_cache.patch

> authentication cache (user docs cache)
> --------------------------------------
>                 Key: COUCHDB-807
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>         Environment: trunk
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>         Attachments: auth_cache.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

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

View raw message