Skip to content

Commit

Permalink
batch_size as int
Browse files Browse the repository at this point in the history
  • Loading branch information
rymarczy committed Nov 15, 2023
1 parent b15e464 commit f83f5e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python_src/src/lamp_py/tableau/jobs/gtfs_rail.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def create_parquet(self, db_manager: DatabaseManager) -> None:
if os.path.exists(self.local_parquet_path):
os.remove(self.local_parquet_path)

db_batch_size = 1024 * 1024 / 2
db_batch_size = int(1024 * 1024 / 2)

db_manager.write_to_parquet(
select_query=sa.text(self.create_query),
Expand Down
2 changes: 1 addition & 1 deletion python_src/src/lamp_py/tableau/jobs/rt_rail.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def create_parquet(self, db_manager: DatabaseManager) -> None:

# this is a fairly wide dataset, so dial back the batch size
# to limit memory usage
db_batch_size = 1024 * 1024 / 2
db_batch_size = int(1024 * 1024 / 2)

if os.path.exists(self.local_parquet_path):
os.remove(self.local_parquet_path)
Expand Down

0 comments on commit f83f5e9

Please sign in to comment.