couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: svn commit: r897509 - /couchdb/trunk/etc/couchdb/default.ini.tpl.in
Date Sun, 10 Jan 2010 18:25:15 GMT
On Sun, Jan 10, 2010 at 8:25 AM, Paul Davis <paul.joseph.davis@gmail.com> wrote:
> Was there a discussion I missed somewhere on making sequential uuid's
> the default algorithm? We decided against it when applying the patch
> from COUCHDB-465 [1] and I still hesitate to use anything other than
> completely random as the default. With the sequential algorithm we're
> leaking doc creation times in a non-obvious manner.
>

The discussion was in this thread:

http://mail-archives.apache.org/mod_mbox/couchdb-dev/201001.mbox/%3Ce282921e1001071104r78cd3fb3off29b13a24c86e95@mail.gmail.com%3E

I'm not feeling super-strong about this. However, making the default
sequential seems like it will preempt a lot of the problems people
tend to show up asking about. If even power users are running into the
issue before reconfiguring for faster uuids, then no amount of
documentation will help the people out there who are never gonna touch
any sort of config.

I think the info-leakage argument is overblown (I'm glad its easy to
config to fix this when it's important) -- with random uuids Couch can
become so slow as to be unusable, for some cases, with the sequential
ones you have to push a lot harder to get it into the red.


> I'd rather just see a wiki page on something like "Configuring CouchDB
> for improved performance" that went over any config settings to speed
> things up with relevant explanations for each. This could also cover
> batch inserts with the logic behind the changes.
>
> Paul Davis
>
> [1] https://issues.apache.org/jira/browse/COUCHDB-465
>
> On Sat, Jan 9, 2010 at 1:23 PM,  <jchris@apache.org> wrote:
>> Author: jchris
>> Date: Sat Jan  9 18:23:16 2010
>> New Revision: 897509
>>
>> URL: http://svn.apache.org/viewvc?rev=897509&view=rev
>> Log:
>> make sequential uuids the default
>>
>> Modified:
>>    couchdb/trunk/etc/couchdb/default.ini.tpl.in
>>
>> Modified: couchdb/trunk/etc/couchdb/default.ini.tpl.in
>> URL: http://svn.apache.org/viewvc/couchdb/trunk/etc/couchdb/default.ini.tpl.in?rev=897509&r1=897508&r2=897509&view=diff
>> ==============================================================================
>> --- couchdb/trunk/etc/couchdb/default.ini.tpl.in (original)
>> +++ couchdb/trunk/etc/couchdb/default.ini.tpl.in Sat Jan  9 18:23:16 2010
>> @@ -99,7 +99,7 @@
>>  ;     random prefix is regenerated and the process starts over.
>>  ;   utc_random - Time since Jan 1, 1970 UTC with microseconds
>>  ;     First 14 characters are the time in hex. Last 18 are random.
>> -algorithm = random
>> +algorithm = sequential
>>
>>  [stats]
>>  ; rate is in milliseconds
>>
>>
>>
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message