couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filipe David Manana <fdman...@apache.org>
Subject Re: Is it good idea put many(100 000) big attachments to single doc?
Date Fri, 13 Aug 2010 12:27:02 GMT
On Fri, Aug 13, 2010 at 1:23 PM, 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.
>

If you do a PUT /dbname/docname/attachment.whatever  (attachment standalone
API) it will create the document if it doesn't exist already. The doc will
be empty, but maybe it's not an issue for your case.


>
>
> 2010/8/13 Noah Slater <nslater@apache.org>:
> > What about a separate db for your attachments, with one attachment per
> doc?
> >
> > On 13 Aug 2010, at 12:03, faust 1111 wrote:
> >
> >> Hi guy's.
> >> I have idea keep all attachments in separate db, separate from docs
> >> (its allow me replicate only docs without attachments),
> >> and in doc save link to attachment in separate db.
> >>
> >> is it possible put many(100 000) big attachments to single doc?
> >> Thanks for help!
> >
> >
>



-- 
Filipe David Manana,
fdmanana@gmail.com, fdmanana@apache.org

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message