couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From faust 1111 <faust...@gmail.com>
Subject Re: bulk Updates
Date Thu, 25 Mar 2010 00:56:05 GMT
i means another case
i told: author change name and i must replace name in all related content.

2010/3/25 Randall Leeds <randall.leeds@gmail.com>:
> When you have a new author, write that to a document. Use that
> document's id to reference it in other docs maybe?
>
> On Wed, Mar 24, 2010 at 17:03, faust 1111 <faust451@gmail.com> wrote:
>> if i follow
>>
>> The CouchDB pattern would be something like:
>>
>> 1. Define a view that allows you to fetch the docs you want.
>> 2. Fetch the docs, possibly using ?include_docs=true
>> 3. Update the docs in the client
>> 4. Push all the docs back using _bulk_docs
>>
>> its will be to slow in my case
>> i have contents with authors:
>> content {
>>  authors: [
>>     {name: 'Lara', slug: 23424},
>>     {name: 'Dimon', slug: 23445}
>>  ]
>> }
>>
>> if author change name i must fetch 2000 docs and by hand change author
>> name in each doc
>> this is crazy job guy`s.
>>
>> May be i`am thinking in wrong way?
>> please help.
>>
>

Mime
View raw message