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 DC6807CF1 for ; Wed, 23 Nov 2011 12:52:03 +0000 (UTC) Received: (qmail 9842 invoked by uid 500); 23 Nov 2011 12:52:03 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 9809 invoked by uid 500); 23 Nov 2011 12:52:03 -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 9801 invoked by uid 99); 23 Nov 2011 12:52:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 12:52:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 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; Wed, 23 Nov 2011 12:52:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C416C998AD for ; Wed, 23 Nov 2011 12:51:39 +0000 (UTC) Date: Wed, 23 Nov 2011 12:51:39 +0000 (UTC) From: "Jan Lehnardt (Created) (JIRA)" To: dev@couchdb.apache.org Message-ID: <936974310.5794.1322052699804.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (COUCHDB-1345) Bulk edit document on the server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Bulk edit document on the server -------------------------------- Key: COUCHDB-1345 URL: https://issues.apache.org/jira/browse/COUCHDB-1345 Project: CouchDB Issue Type: Wish Reporter: Jan Lehnardt [moved here from the wiki] A Document Runner would provide functionality to run a transform function across all documents in the database. This way you could do maintenance and migrations, with incurring a bunch of http overhead. The idea was originally floated on the couchdb-user mailing list. Requirements Ability to specify a job in a view-server like context (Javascript other language function) and have it run across all docs (like a view is), but with the additional ability to write back to the document (through the http api, so we don't have to add a socket-based update interface). Caveat: We may not be able to guarantee that runner functions see each document only once, so functions need to be aware only to modify documents that require modification. Uses Changing the format of a timestamp across all docs Removing sensitive fields before replicating to another jurisdiction (View runner... slightly different) Materializing the results of group=true reduce queries into a dataset for further map/reduce processing (a common pattern in Hadoop) -- 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