Depending on what exactly you are doing, you could perhaps add everything
as one document, using update functions to prevent the roundtrip?

On Wed, Apr 15, 2015 at 1:09 PM, ken tashiro <[email protected]>
wrote:

> Thank you, Giovanni.
>
> > You can't. Each document only knows about itself. But there is probably
> > another way of accomplishing what you want with CouchDB.
>
> In my current application, just before local program uploads document
> "33333"
> it searches couchDB and knows 'the ancestor of this document  "33333" is
>  "22222"  and its value is "hello" ' , then add  {"its ancestor
> value":"hello"}
> to document "33333" , then finally upload the document "33333".
>
> So, to PUT one document,local program communicates with couchDB
> twice and I feel it inefficient.
> But I understand this GET and PUT is necessary.
>
> I'm sorry for my poor english.
>
> ken tashiro
>

Reply via email to