to_sql() performance regression (#19664) when DF contains many columns #21146
Labels
Performance
Memory or execution speed performance
Regression
Functionality that used to work in a prior pandas version
Milestone
After #19664
to_sql()
performance is highly dependent on the number of columns.Problem description
For a single column 0.23 is faster than 0.22. Adding more columns has little influence on 0.22 but quickly degrades the performance on 0.23. I.e. for 20 columns 0.23 takes 1.5 times longer than 0.22
Performance degradation happens regardless of parameter
chunksize
adjustment.Tested using linux, postgres 9.6, python 3.6, SQLAlchemy 1.2.2
The text was updated successfully, but these errors were encountered: