Re: How to optimize monstrous query, sorts instead of

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: How to optimize monstrous query, sorts instead of
Дата
Msg-id 1057235173.30368.32.camel@jester
обсуждение исходный текст
Список pgsql-performance
> CREATE VIEW foo AS {complex_slow_query};
>
> SET random_page_cost = 1.5; EXPLAIN ANALYZE SELECT * FROM foo;
>
> Note the time taken. Repeat a few times to get the average.

You pulled everything off disk and tossed it into memory with the first
run so the results will NOT match your normal situation (some data on
disk, some cached in memory) for your second run and further runs unless
there is a LONG timeframe between runs.

That said, if you test with several other queries and get the same
results, it's probably good enough for your system.

Вложения

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

Предыдущее
От: Paul Thomas
Дата:
Сообщение: Re: raise or lower transaction timeout?
Следующее
От: Sean Chittenden
Дата:
Сообщение: Moving postgresql.conf tunables into 2003...