couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <>
Subject Re: Moving an attachment from one document to another
Date Sun, 19 Apr 2009 17:05:50 GMT
On Sun, Apr 19, 2009 at 12:49 PM, Wout Mertens <> wrote:
> On Apr 19, 2009, at 12:26 AM, Justin Walgran wrote:
>> Making a separate doc per file from the get go, per Chris's
>> suggestion,  is not a problem but how can I change the doc ID to
>> something more meaningful after the doc is added?
> You can't. You'll have to create a new document and delete the old one.

There's only limited utility to human readable docids. The benefit is
that you don't need a view to give easy access to the docs, the cost
is that you increase the chances of collisions. I'd just use the view,
as that's what they are for.

Chris Anderson

View raw message