On Wed, Mar 24, 2010 at 7:19 PM, faust 1111 <faust451@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
|