fix: Insert big chunks in ARDB is baster.

pull/12/head
Raphaël Vinot 2018-04-10 14:47:51 +02:00
parent ce96ad9825
commit 5670db9d1d
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class DatabaseInsert():
while True: while True:
if shutdown_requested(): if shutdown_requested():
break break
uuids = self.redis_sanitized.spop('to_insert', 100) uuids = self.redis_sanitized.spop('to_insert', 1000)
if not uuids: if not uuids:
break break
p = self.redis_sanitized.pipeline(transaction=False) p = self.redis_sanitized.pipeline(transaction=False)