couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <>
Subject Re: Clarification on "UUIDs Configuration"
Date Mon, 20 Jan 2014 20:36:54 GMT

On Jan 20, 2014, at 12:19 PM, Stefan Klein <> wrote:

> a performance impact of random document ids.
> If the document ids are not sequential larger portions of the b-tree need
> to be rewriten.
> Is this related only to inserts or also to updates?

It only applies to inserts, because if nodes are added to the b-tree in random order, more
rebalancing will be necessary. Adding them in sequential order is more optimal.

Updates don't change the structure of the tree (only the contents of leaf nodes) so their
ordering doesn't matter as much.

View raw message