Re: Performance Optimization for Dummies 2 - the SQL

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Performance Optimization for Dummies 2 - the SQL
Дата
Msg-id b42b73150610030804q2719222du57c63a085e26a5a4@mail.gmail.com
обсуждение исходный текст
Ответ на Performance Optimization for Dummies 2 - the SQL  ("Carlo Stonebanks" <stonec.register@sympatico.ca>)
Ответы Re: Performance Optimization for Dummies 2 - the SQL  (Alex Stapleton <alexs@advfn.com>)
Список pgsql-performance
On 10/3/06, Carlo Stonebanks <stonec.register@sympatico.ca> wrote:
> Some very helpful people had asked that I post the troublesome code that was
> generated by my import program.
>
> I installed a SQL log feature in my import program. I have
> posted samples of the SQL statements that cause the biggest delays.

explain analyze is more helpful because it prints the times.

sample 1, couple questions:
what is the purpose of limit 1?
if you break up the 'or' which checks facility and address into two
separate queries, are the two queries total times more, less, or same
as the large query.

merlin

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

Предыдущее
От: Geoffrey
Дата:
Сообщение: Re: Unsubscribe
Следующее
От: Darcy Buskermolen
Дата:
Сообщение: Re: Poor performance on very simple query ?