From 5a07fe6d9e3e8d066f0985c728f6bbddf0d2cb44 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Mon, 16 Dec 2024 14:27:45 +0100 Subject: [PATCH] chore: remove TODO --- algoliasearch_django/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/algoliasearch_django/models.py b/algoliasearch_django/models.py index 2d12355..5e55822 100644 --- a/algoliasearch_django/models.py +++ b/algoliasearch_django/models.py @@ -374,10 +374,9 @@ def update_records(self, qs, batch_size=1000, **kwargs): tmp["objectID"] = elt batch.append(dict(tmp)) - # TODO: pass batch_size to partial_update_objects if len(batch) > 0: self.__client.partial_update_objects( - index_name=self.index_name, objects=batch, wait_for_tasks=True + index_name=self.index_name, objects=batch, wait_for_tasks=True, batch_size=batch_size, ) def raw_search(self, query="", params=None):