You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pandas-to-postgres allows you to bulk load the contents of large dataframes into postgres as quickly as possible. The main differences from pandas' `to_sql` functions are:
4
+
5
+
- Uses `COPY` combined with `to_csv` instead of `execute / executemany`, which runs much faster for large volumes of data
6
+
- Uses `COPY FROM STDIN` with `StringIO` to avoid IO overhead to intermediate files. This matters in particular for data stored in unusual formats like HDF, STATA, parquet - common in the scientific world.
7
+
- Chunked loading methods to be able to load larger-than-memory tables. In particular the HDF5 functions load data in chunks directly from the file, easily extendible to other formats that support random access by row range.
8
+
- Removes indexing overhead by automatically detecting and dropping indexes before load, and then re-creating them afterwards
9
+
- Loads separate tables in parallel using multiprocessing
0 commit comments