incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: CouchDB suitable as session store?
Date Fri, 21 Jan 2011 15:04:28 GMT
On Fri, Jan 21, 2011 at 3:58 PM, He Shiming <heshiming@gmail.com> wrote:
> Hi,
>
> I've created a beaker extension to use CouchDB as session store
> (because my application is already using couchdb under pylons /
> python). The beaker library serializes a dict of objects using pickle.
> So it's essentially a key (session id) value (serialized content)
> pair. My application puts lots of information in sessions. And some of
> them are constantly changing during user navigation.
>
> I quickly noticed that a single user can create some 5MB large
> documents during like 3 minutes of navigation. After compacting it's
> like 20KB. This doesn't look good because it's taking up too much
> space and I may need to constantly go to futon to compact it.
> Compacting might be slow because of the size.
>
> I was wondering if there's an option for me to compact a particular
> document after each time I save?
>
> Or should I just go for redis for session store?
>
I used couchdb for session on friendpaste/couchit and other sites but
then decided to use redis for that and only use couchdb as a
datastore.

Since session don't really need to be fully persistent, redis fit
well. Or kyoto tycoon .

- benoit

Mime
View raw message