Skip to content

Commit

Permalink
attempt: insert_many instead of import_bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Feb 27, 2024
1 parent 36e33e5 commit 91aed84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adbpyg_adapter/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ def __insert_adb_docs(

docs = df.to_dict("records")
db = self.__async_db if use_async else self.__db
result = db.collection(col).import_bulk(docs, **adb_import_kwargs)
result = db.collection(col).insert_many(docs, **adb_import_kwargs)
logger.debug(result)

df.drop(df.index, inplace=True)
Expand Down

0 comments on commit 91aed84

Please sign in to comment.