| От | Stephan Szabo |
|---|---|
| Тема | Re: 7.4 - FK constraint performance |
| Дата | |
| Msg-id | 20040212080217.A87422@megazone.bigpanda.com обсуждение |
| Ответ на | 7.4 - FK constraint performance (ow <oneway_111@yahoo.com>) |
| Список | pgsql-sql |
On Thu, 12 Feb 2004, ow wrote: > --- Stephan Szabo <sszabo@megazone.bigpanda.com> wrote: > > You also did the alter table to up the statistics target on the column, > > right? > > Not really. I did not change the the default stats settings in the > postgresql.conf. Not sure what needs to be changed, can you clarify? Basically, run something like: -- 1000 is just an arbitrary choice, but we can lower it later if this -- works. ALTER TABLE my.Large ALTER COLUMN small_id SET STATISTICS 1000; ANALYZE my.Large; This increases the target for just the column in question which means it should have a better idea of the distribution and may make it make a better guess if you've got a somewhat uneven distribution.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера