For bulk loading into sync_gateway you might see some performance improvement using the _bulk_docs REST API call, here is a simplified CURL example for three documents (note I used the data sample id for doc _id, but if you don't supply this, sync_gateway will generate a doc _id):
curl -X POST -H "Content-Type: application/json" http://localhost:4984/db/_bulk_docs -d '{"docs":[{"_id": "395614","postcode": "7940XX","postcode_id": "79408888"},{"_id": "395615","postcode": "7940XX","postcode_id": "79408889"},{"_id": "395616","postcode": "7940XX","postcode_id": "79408890"}]}' With the sync_gateway response being: [{"id":"395614","rev":"1-05f0f1bc377c413076b6b687a7fc77a8"},{"id":"395615","rev":"1-ef00f67e65fa0667f833d3fcb9b6bb9f"},{"id":"395616","rev":"1-379f9bdd754ccb0c2d768bf0709b7c0d"}] There is a CouchDB Wiki page giving more examples for _bulk_docs here <http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API> -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/4fb047c5-eba4-4453-bf80-ae78469fb60b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
