4 ms·
COPY is the fastest method to insert data in Postgres. As another poster mentioned, setting table to UNLOGGED will help also. Finally, you can drop ALL indexe
by jarym 6y ago
COPY is the fastest method to insert data in Postgres. As another poster mentioned, setting table to UNLOGGED will help also.
Finally, you can drop ALL indexes and recreate them after import (been hit and miss in my testing but on occasion has helped).