Re: Delete query takes exorbitant amount of time

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Delete query takes exorbitant amount of time
Дата
Msg-id 200503250938.28896.josh@agliodbs.com
обсуждение исходный текст
Ответ на Delete query takes exorbitant amount of time  (Karim Nassar <Karim.Nassar@acm.org>)
Ответы Re: Delete query takes exorbitant amount of time  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-performance
Karim,

> I guess I was wondering if there is other general tuning advice for such
> large table indexes such as increasing statistics, etc.

Well, your index use problem is being explained by Tom, Stephan and Simon;
basically your FKed data types are incompatible for index use purposes so the
system *can't* use an index while loading.

If you're going with the drop/load/recreate option, then I'd suggest
increasing work_mem for the duration.  Hmmm ... or maintenance_work_mem?
What gets used for FK checks?  Simon?

--
Josh Berkus
Aglio Database Solutions
San Francisco

В списке pgsql-performance по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Delete query takes exorbitant amount of time
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Script for getting a table of reponse-time breakdown