Skip to content

Commit

Permalink
Reset chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Feb 18, 2025
1 parent 240f711 commit 09edca3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions synapseclient/models/mixins/table_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,8 +1037,6 @@ async def main():

if client.logger.isEnabledFor(logging.DEBUG):
client.logger.debug(f"Running query: {query}")
else:
client.logger.info("Running query")

# TODO: Implementation should not download CSV to disk, instead the ideal
# solution will load the result into BytesIO and then pass that to
Expand Down Expand Up @@ -2100,6 +2098,7 @@ async def main():
if current_chunk_size + row_size > chunk_size_limit:
chunked_rows_to_update.append(chunk)
chunk = []
current_chunk_size = 0
chunk.append(row)
current_chunk_size += row_size

Expand Down

0 comments on commit 09edca3

Please sign in to comment.