You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by faust 1111 <fa...@gmail.com> on 2010/03/25 03:19:13 UTC

Document limit size?

What is limit size for couchDB doc?

i have a plane store in this model

author {
  contents [
    {title: 'Crazy Film',  _attachment: 1GB},
    {title: 'Crazy 2 Film',  _attachment: 1,5GB}
  ]
}

is wright way?

Re: Document limit size?

Posted by Tim Smith <ti...@couch.io>.
On Wed, Mar 24, 2010 at 7:19 PM, faust 1111 <fa...@gmail.com> wrote:
> author {
>  contents [
>    {title: 'Crazy Film',  _attachment: 1GB},
>    {title: 'Crazy 2 Film',  _attachment: 1,5GB}
>  ]
> }
>
> is wright way?

It's a reasonable approach.  It would also make sense to store each
movie as a separate document, which knows about its author(s).
Storing movies inside author might be complicated if a movie can have
more than one author -- depends on what you're modeling.

You'll probably want to look at the standalone attachments interface:

http://wiki.apache.org/couchdb/HTTP_Document_API#Standalone_Attachments

Good luck.

Tim
-- 
If you're not part of the solution, you're part of the precipitate