Optimizing huge inserts/copy's
Webb Sprague <wsprague100@yahoo.com>
From: Webb Sprague <wsprague100@yahoo.com>
To: pgsql-sql@postgresql.org
Date: 2000-08-30T00:04:52Z
Lists: pgsql-sql
Hi all, Does anybody have any thoughts on optimizing a huge insert, involving something like 3 million records all at once? Should I drop my indices before doing the copy, and then create them after? I keep a tab-delimited file as a buffer, copy it, then do it again about 400 times. Each separate buffer is a few thousand records. We do this at night, so it's not the end of the world if it takes 8 hours, but I would be very grateful for some good ideas... Thanks W __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/