Skip to content

Commit

Permalink
Merge pull request #563 from chris-allan/batch-by-max-download-rows
Browse files Browse the repository at this point in the history
Batch by MAX_TABLE_DOWNLOAD_ROWS
  • Loading branch information
knabar authored Jul 19, 2024
2 parents f2e0adc + af88a0c commit ba8c7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omeroweb/webgateway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3008,7 +3008,7 @@ def perform_table_query(
def row_generator(table, h):
# hits are all consecutive rows - can load them in batches
idx = 0
batch = 1000
batch = settings.MAX_TABLE_DOWNLOAD_ROWS
while idx < len(h):
batch = min(batch, len(h) - idx)
res = table.slice(col_indices, h[idx : idx + batch])
Expand Down

0 comments on commit ba8c7e2

Please sign in to comment.