Question

I have a Postgres database with many millions of records that I want to migrate to CouchDB. I know how I want to represent the records as documents, each document will have 9 items (4 integers, 4 text strings, and a date string).

My question is: Do I really need to write something that's going to have to do millions and millions of POST requests to create my initial database from the existing data? I understand that CouchDB is generally fast but doing this over HTTP strikes me as extremely inefficient and time consuming to do over even localhost HTTP.

HTTP is the only API that I see, so is this normally what is done when someone has to create a database with a huge number of initial documents?

Thanks

Was it helpful?

Solution

Yes, it is done via http. It is not inefficient though, since you can create multiple documents in one request by using the _bulk_docs API.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top