couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pau Freixes <>
Subject Re: Compactation and resource fighing problems
Date Thu, 06 Oct 2011 07:43:20 GMT

On Thu, Oct 6, 2011 at 9:14 AM, CGS <> wrote:
> Hi,
> Unfortunately, there isn't too much to do about but to change a bit the
> design of your DB. That means:
> Option 1:
> Change from continuous writing to bulk writing. That means you should create
> a buffer for your writers in your application and when the buffer is full,
> flush it to DB by the mean of bulk operation. In this way your writers will
> allow DB to do some other operations in between bulk operation requests and
> the writing time gets shorter.

I can try to use a bulk buffer write and flush the buffer after N time or
happens some changes, with this method I will have a window time for
compact database.



View raw message