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