Re: Perfomance Problems

Поиск
Список
Период
Сортировка
От Brent R. Matzelle
Тема Re: Perfomance Problems
Дата
Msg-id 20011106182426.96941.qmail@web13001.mail.yahoo.com
обсуждение исходный текст
Ответ на Perfomance Problems  (Manuel Duran Aguete <mdaguete@alsernet.es>)
Список pgsql-general
--- Manuel Duran Aguete <mdaguete@alsernet.es> wrote:
> The B app takes less than a second in process each message.
>         The statement is
>         SELECT * FROM table_a
>         WHERE number = 123
>                 AND msg_orig = 'A'
>         ORDER by id;

If number is a VARCHAR then why are you selecting it like it is
an INT ("WHERE number = 123" rather than "WHERE number =
'123'")?  You seem to need an index on number.  The index on
time_b does not look like it is necessary.

Brent



__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

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

Предыдущее
От: Vivek Khera
Дата:
Сообщение: Re: postgres 7.1.1 on Freebsd 4.3?
Следующее
От: Andrew Gould
Дата:
Сообщение: Re: copy command with PSQL