Optimizing huge inserts/copy's - Mailing list pgsql-sql

From Webb Sprague
Subject Optimizing huge inserts/copy's
Date
Msg-id 20000830000452.2110.qmail@web802.mail.yahoo.com
Whole thread Raw
List 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/


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Problems with complex queries ...
Next
From: Webb Sprague
Date:
Subject: Create Primary Key?