You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/08/02 12:54:01 UTC

[GitHub] [couchdb] ondra-novak opened a new issue #2093: Bulk update

ondra-novak opened a new issue #2093: Bulk update
URL: https://github.com/apache/couchdb/issues/2093
 
 
   Improvements to easly implement UPDATE WHERE feature above CouchDB
   
   ## Summary
   
   Extend the update function request to handle an update of multiple documents
   
   ## Desired Behaviour
   
   ```
   POST /{db}/_design/{ddoc}/_update/_bulk_docs?filter=doc/flt&args....
   POST /{db}/_design/{ddoc}/_update/_bulk_docs?view=doc/view&args....
   POST /{db}/_design/{ddoc}/_update/_bulk_docs?view=doc/view&start_key=xxx&end_key=yyy&args....
   POST /{db}/_design/{ddoc}/_update/_bulk_docs?view=_all_docs&start_key=xxx&end_key=yyy&args....
   ```
   
   The function should pick documents selected by a filter of by a view. For view it can use index to make operation faster. Selected documents are send to update function one by one. Output of the update function is ignored. Result is report about how documents has been updated (new revisions, etc)
   
   ## Additional context
   
   I often need to perform a mass update which currently is possible by combination of mass get, update and mass put which involves massive data transfers from and into database
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services