Optimizing huge inserts/copy's

Поиск
Список
Период
Сортировка
От Webb Sprague
Тема Optimizing huge inserts/copy's
Дата
Msg-id 20000830000452.2110.qmail@web802.mail.yahoo.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Problems with complex queries ...
Следующее
От: Webb Sprague
Дата:
Сообщение: Create Primary Key?