incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <d...@muse.net.nz>
Subject Re: Is it good idea put many(100 000) big attachments to single doc?
Date Fri, 13 Aug 2010 12:54:29 GMT
On 14 August 2010 00:23, faust 1111 <faust451@gmail.com> wrote:
> Yes it's possible but each time when i put attachment i must create
> new doc and remember doc id +attachment_name
> if i keep all attachments in one doc i can remember only
> attachment_name, its simple.

You know you can set your own uuids (doc._id) when you POST the
attachment, right?

So you can keep them whereever you like, use the original name as uuid
(maybe some hash function if you have unusual characters) and easy to
find/refer to.

Will that work for you?

A+
Dave

Mime
View raw message