summaryrefslogtreecommitdiff
path: root/dedup/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'dedup/utils.py')
-rw-r--r--dedup/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dedup/utils.py b/dedup/utils.py
index e4d1c10..6864ad3 100644
--- a/dedup/utils.py
+++ b/dedup/utils.py
@@ -1,11 +1,11 @@
import sqlalchemy.event
def fetchiter(cursor):
- rows = cursor.fetchmany()
+ rows = cursor.fetchmany(1024)
while rows:
for row in rows:
yield row
- rows = cursor.fetchmany()
+ rows = cursor.fetchmany(1024)
def enable_sqlite_foreign_keys(engine):
@sqlalchemy.event.listens_for(engine, "connect")