couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <>
Subject Re: using external to generate shortid ?
Date Mon, 13 Apr 2009 16:01:23 GMT
On Mon, Apr 13, 2009 at 7:20 AM, Benoit Chesneau <> wrote:
> Hi,
> For some project I need to generate short ids/name used in database. I
> created a quick external to send shortid on each call. External use an
> empty doc['shortcode'] which is saved each time the external is called
> thend send bac the rev stem b62encoded. I then use the shortid across
> documents.
> But I wonder if it's enough to be sure 2 doc don't have same short id
> for a node. In fact how are handled externals ? Does couchdb open a
> process each time external is called or does it reuse it ? Does
> couchdb open one external / guest connected to the db ? I would prefer
> to store the sort increment in couchdb so I could do backup easyly.
> What could be the other way to create  a short id ?
> - benoit

External servers use one process per node. All requests for all
databases pass through the same OS process unless it dies in which
case it's restarted.

Paul Davis

View raw message