nlight-jdev / jcouchdb

Automatically exported from code.google.com/p/jcouchdb
Other
0 stars 0 forks source link

Bulk updates #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is there plans to support a bulk update (PUT) operation?  Or, equivalently, 
bulk create where the _id 
is taken from the documents?

Original issue reported on code.google.com by gro...@gmail.com on 26 Nov 2008 at 8:27

GoogleCodeExporter commented 8 years ago
sorry I did not answer.. I did not see that someone was putting issues in here.

You can just set the _id property of the documents you give into
org.jcouchdb.db.Database#bulkCreateDocuments. I just added a test case for it to
[http://jcouchdb.googlecode.com/svn/trunk/test/org/jcouchdb/db/LocalDatabaseTest
Case.java
LocaleDatabaseTest] and it seems to work fine.

Original comment by ff...@gmx.de on 28 Nov 2008 at 7:36

GoogleCodeExporter commented 8 years ago

Original comment by ff...@gmx.de on 29 Nov 2008 at 11:30