couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vlad GURDIGA <gurd...@gmail.com>
Subject Bulk insert on 0.11.0b825472
Date Tue, 20 Oct 2009 10:11:54 GMT
Hi!

I'm trying to bulk insert a bunch of documents using the method
described in the wiki page* but I get a single document with a "docs"
key having as value the list of documents I'm trying to upload.

* http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API

Here is my 9.sjon file:

{
  "docs": [
    {"_id": "0", "integer": 0, "string": "0"},
    {"_id": "1", "integer": 1, "string": "1"},
    {"_id": "2", "integer": 2, "string": "2"}
  ]
}

and I'm trying to upload it with curl like:

$ curl --data-binary @docs/9.json -X POST http://admin:admin@localhost:5984/cozy
{"ok":true,"id":"89e8b18500f51e67bf64a72cba16d9d5","rev":"1-fd14202c52dfc7d8b03f7395f7c82cb4"}

Did that change?


More info:

$ curl http://admin:admin@localhost:5984
{"couchdb":"Welcome","version":"0.11.0b825472"}
$ uname -a
Linux kpax.m 2.6.30.8-64.fc11.x86_64 #1 SMP Fri Sep 25 04:43:32 EDT
2009 x86_64 x86_64 x86_64 GNU/Linux
$ erl
Erlang (BEAM) emulator version 5.6.5 [source] [64-bit] [smp:2]
[async-threads:0] [hipe] [kernel-poll:false]
$

Mime
View raw message