Skip to content

Commit

Permalink
use batch_size in iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
LMNTL committed Oct 13, 2023
1 parent 7abba8d commit a82302e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onadata/apps/logger/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def delete_null_user_daily_counters(apps, *args):
counters_without_users
.exclude(xform=None)
.exclude(xform__user=None)
.iterator()
.iterator(chunk_size=batch_size)
):
counter.user = counter.xform.user
# don't add a user to duplicate counters, so they get deleted when we're done looping
Expand Down

0 comments on commit a82302e

Please sign in to comment.