Skip to content
Snippets Groups Projects
Commit d85bcdac authored by Antoine Lambert's avatar Antoine Lambert
Browse files

simple_lister: Split models into smaller chunks to avoid oversized db transactions

Related T1659
parent 5ea9d5ed
No related branches found
No related tags found
1 merge request!79Split models into smaller chunks to avoid oversized db transactions
......@@ -45,7 +45,7 @@ class SimpleLister(ListerBase):
models_list = self.transport_response_simplified(response)
models_list = self.filter_before_inject(models_list)
all_injected = []
for models in utils.grouper(models_list, n=10000):
for models in utils.grouper(models_list, n=1000):
models = list(models)
logging.debug('models: %s' % len(models))
# inject into local db
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment