ropensci / sofa

Easy R interface to CouchDB
https://docs.ropensci.org/sofa/
33 stars 17 forks source link

`db_bulk_create`: needs fixes #65

Closed sckott closed 2 years ago

sckott commented 6 years ago

speedups and fixes for large data

One idea is to chunk the data into equal sized chunks, e.g, a 1000 row data.frame into 10 chunks of 100 each. we do this in elastic. CouchDB doesn't do ND-JSON though unfortunately.

right now, trying to write flights dataset takes a long time and then fails

invisible(db_bulk_create(x, "flights", flights))
#> Error: (413) - the request entity is too large