Commit 0c3a6aa4 authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Fix upload data in chunks

parent 0a402eff
......@@ -118,7 +118,10 @@ class Database:
def bulk_create(self, docs):
url = self._get_endpoint_url('_bulk_docs/')
response =, json={ 'docs': docs })
for i in range(0, len(docs), 100):
response =
url, json={ 'docs': docs[i:i+100] }
if response.status_code == HTTPStatus.CREATED:
raise CouchException(response)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment