Robert, Try this:
$ DB="http://127.0.0.1:5984/mydb" $ 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: http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API Cheers, Zach On Sun, Nov 15, 2009 at 3:43 PM, Robert Recchia <[email protected]> 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 >
