The process inserting data from the dataframe into the oracle database is work very slow (more than one hour)
Advise me please, how I can to improve the process of inserting data into the database?
count column = 50, raw count = > 250000
I have a lot of such files
Connecting to the database in this way
dialect = 'oracle'
sql_driver = 'cx_oracle'
to_engine: str = dialect + '+' + sql_driver + '://' + user + ':' + password + '@' + host + ':' + str(port) + '/?service_name=' + service_name
connection = create_engine(to_engine)
to_sql method look like this
df.to_sql(table_name_in_db, con=connection, schema='', if_exists='append', index=False, chunksize = 1000, dtype=None)
Thanks a lot!