Skip to content

Commit 5a07fe6

Browse files
committed
chore: remove TODO
1 parent 4a4031f commit 5a07fe6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

algoliasearch_django/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,9 @@ def update_records(self, qs, batch_size=1000, **kwargs):
374374
tmp["objectID"] = elt
375375
batch.append(dict(tmp))
376376

377-
# TODO: pass batch_size to partial_update_objects
378377
if len(batch) > 0:
379378
self.__client.partial_update_objects(
380-
index_name=self.index_name, objects=batch, wait_for_tasks=True
379+
index_name=self.index_name, objects=batch, wait_for_tasks=True, batch_size=batch_size,
381380
)
382381

383382
def raw_search(self, query="", params=None):

0 commit comments

Comments
 (0)