From 1a9e1772b6ee04d5e5370e93cffacb5591e34470 Mon Sep 17 00:00:00 2001 From: Sheng Lundquist Date: Wed, 21 Aug 2024 12:45:39 -0700 Subject: [PATCH] Don't use multi in to_sql, as it breaks if there are too many events to insert --- src/agent0/chainsync/df_to_db.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/agent0/chainsync/df_to_db.py b/src/agent0/chainsync/df_to_db.py index f7c83bbfa..f690585a8 100644 --- a/src/agent0/chainsync/df_to_db.py +++ b/src/agent0/chainsync/df_to_db.py @@ -33,7 +33,6 @@ def df_to_db(insert_df: pd.DataFrame, schema_obj: Type[Base], session: Session): table_name, con=session.connection(), if_exists="append", - method="multi", index=False, dtype=dtype, # type: ignore chunksize=MAX_BATCH_SIZE,