Re: Queries slow using stored procedures

Поиск
Список
Период
Сортировка
От John Meinel
Тема Re: Queries slow using stored procedures
Дата
Msg-id 417BFE75.4060006@johnmeinel.com
обсуждение исходный текст
Ответ на Queries slow using stored procedures  ("Rod Dutton" <rod@e-rm.co.uk>)
Список pgsql-performance
Rod Dutton wrote:
> I also should add that the sp is only slow when the table is big (probably
> obvious!).
>
> Rod

Sure, the problem is it is switching to a sequential search, with a lot
of rows, versus doing an indexed search.

It's all about trying to figure out how to fix that, especially for any
value of botnum. I would have hoped that using LIMIT 1 would have fixed
that.

John
=:->

Вложения

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

Предыдущее
От: John Meinel
Дата:
Сообщение: Re: Queries slow using stored procedures
Следующее
От: John Meinel
Дата:
Сообщение: Sequential Scan with LIMIT