Skip to content

Commit

Permalink
Try using executemany with parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Aug 30, 2024
1 parent 1866b4b commit 762e5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pypi_data/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def run_sql(
conn.execute(f"SET preserve_insertion_order=false;")
if not no_limits:
limits = f"PRAGMA threads={threads}; PRAGMA memory_limit='{memory}GB';"
conn.executemany(limits)
conn.executemany(limits, parameters=[[], []])

print(sql)
print("\n\n\n")
Expand Down

0 comments on commit 762e5c2

Please sign in to comment.