From dev-return-15063-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon Feb 28 14:40:06 2011 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 25536 invoked from network); 28 Feb 2011 14:40:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Feb 2011 14:40:05 -0000 Received: (qmail 31583 invoked by uid 500); 28 Feb 2011 14:40:05 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 31075 invoked by uid 500); 28 Feb 2011 14:40:01 -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 31059 invoked by uid 99); 28 Feb 2011 14:40:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 14:40:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Mon, 28 Feb 2011 14:39:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0BC804189E for ; Mon, 28 Feb 2011 14:39:37 +0000 (UTC) Date: Mon, 28 Feb 2011 14:39:37 +0000 (UTC) From: "James Henstridge (JIRA)" To: dev@couchdb.apache.org Message-ID: <1752713333.1614.1298903977044.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (COUCHDB-1077) bulkSave() method in couch.js generates more UUIDs than are needed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 bulkSave() method in couch.js generates more UUIDs than are needed. ------------------------------------------------------------------- Key: COUCHDB-1077 URL: https://issues.apache.org/jira/browse/COUCHDB-1077 Project: CouchDB Issue Type: Bug Components: Futon Affects Versions: 1.0.1 Environment: Ubuntu 10.10 Reporter: James Henstridge Priority: Minor The code in bulkSave() to fill in the "_id" attribute of documents that are missing it generates more UUIDs than needed. It first counts the number of documents that lack the _id attribute, but instead of using this value when calling CouchDB.newUuids(), it instead uses the total number of documents. This doesn't result in incorrect results, but is wasted effort. If all the documents already have IDs, then it also adds an unnecessary round trip. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira