incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zachary Zolton <>
Subject Re: bulk insert
Date Sun, 15 Nov 2009 22:28:06 GMT

Try this:

$ DB=""
$ curl -v -d '{"docs":[{"key":"baz","name":"bazzel"},{"key":"bar","name":"barry"}]}'
-X POST $DB/_bulk_docs
$ curl -v -d @your_file.json -X POST $DB/_bulk_docs

>From the wiki:



On Sun, Nov 15, 2009 at 3:43 PM, Robert Recchia <> wrote:
> I have been playing couchdb for about 2 weeks now.  I'm having trouble
> dealing with how to perform a bulk insert.
> Is it possible to perform a bulk insert with a json file.  So lets say
> i have a json file with all my documents that i want to insert what is
> the syntax to insert them in bulk.  I have a db named albums with all
> my favorite album names and the groups they are sung by.  How does
> everyone else deal with bulk inserts.
> --
> Robert Recchia

View raw message