Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CE3C99CBF for ; Thu, 6 Oct 2011 00:06:52 +0000 (UTC) Received: (qmail 30906 invoked by uid 500); 6 Oct 2011 00:06:51 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 30852 invoked by uid 500); 6 Oct 2011 00:06:51 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 30792 invoked by uid 99); 6 Oct 2011 00:06:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 00:06:51 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 00:06:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F2E0A2A934F for ; Thu, 6 Oct 2011 00:06:29 +0000 (UTC) Date: Thu, 6 Oct 2011 00:06:29 +0000 (UTC) From: "Benjamin Young (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1786642806.1527.1317859589996.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <72848644.1517.1317859469844.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1303) Add a _bulk_update handler similar to _update but for bulk document changes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121623#comment-13121623 ] Benjamin Young commented on COUCHDB-1303: ----------------------------------------- Others have hit this situation as well: http://stackoverflow.com/questions/4061766/couch-db-bulk-update-using-handlers/7669106 > Add a _bulk_update handler similar to _update but for bulk document changes > --------------------------------------------------------------------------- > > Key: COUCHDB-1303 > URL: https://issues.apache.org/jira/browse/COUCHDB-1303 > Project: CouchDB > Issue Type: New Feature > Reporter: Benjamin Young > Labels: api, update_request_handler > > _update handlers are great (and getting better!) for building RESTful API's inside CouchDB. One limitation I found tonight is that _update can only do a single document at a time. If the API I'm building needs to update multiple docs (in a similar fashion to _bulk_docs), then an outside "proxy" script is required. It would be ideal to have a _bulk_update handler to allow for the same functionality as _update, but with the ability to insert multiple documents at once. > Perhaps the current _update handler API could be extended to support multiple IDs/documents, but a separate API endpoint would be seem reasonable if needed. > Thanks for considering this idea. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira