couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <>
Subject Re: Re: data loading
Date Wed, 04 Feb 2009 20:15:38 GMT
On Wed, Feb 4, 2009 at 9:46 AM, Rhett Garber <> wrote:
> It's advisable to create my own doc ids ? Why wouldn't they be sorted
> when couchdb creates them ?

this is a planned change. (roughly) ascending docids play nicer with
the FS cache, so you get much greater (6x in my case) insert speeds.

On my MacBook I was able to get 6,000 docs / sec (in batches of 1,000
docs). I was bypassing the JSON processing so that helped some, but
the ~6x speedup should apply even with the HTTP api, through good
choice of docids.

Chris Anderson

View raw message