diff options
-rw-r--r-- | dedup/utils.py | 4 |
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") |