I've got a table with around 2.7 million records, 63 fields, and several indexes. I need to be able to get this table from mysql to postgresql quickly (say within an hour). I know mysql can export the data quickly, but postgresql seems to be very slow when importing the data. Any ideas? I've been importing a CSV produced from mysqldump for about 3 hours now.
|
The fastest way I can think of would be to drop all the indexes and triggers (or at least Some of the configuration options for postgres can affect data load times. Disabling autovacuum and increasing the time between checkpoints can help with huge loads, but you'll need to restart postgresql in order to change the |
|||
|
|
This option exists
Give it a Try !!! |
|||||
|
|
There are any number of professional ETL tools that can migrate between databases at fairly high speeds - for example, I have used Pentaho's open source PDI (nee Kettle) hit in the range of 100K rows/second. These also bring several other advantages, such as allowing you to massage data to few new structures, a graphical interface for the mapping process, and so forth. |
|||
|
|