Skip to content
Prev Previous commit
Next Next commit
format
Signed-off-by: cmuhao <sduxuhao@gmail.com>
  • Loading branch information
HaoXuAI committed May 9, 2024
commit 7a091385686ac691f56b45e0cd96d553dbebe52b
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def online_write_batch(
for i in range(0, len(insert_values), batch_size):
batch = insert_values[i: i + batch_size]
actions = self._bulk_batch_actions(batch)
helpers.bulk(self._client, actions)
helpers.bulk(self._get_client(config), actions)

def online_read(
self,
Expand Down Expand Up @@ -146,7 +146,7 @@ def update(
):
# implement the update method
for table in tables_to_delete:
self._client.delete_by_query(index=table.name)
self._get_client(config).delete_by_query(index=table.name)
for table in tables_to_keep:
self.create_index(config, table)

Expand Down