Improving performance of a query

Поиск
Список
Период
Сортировка
От Carlos Benkendorf
Тема Improving performance of a query
Дата
Msg-id 20050903210227.75394.qmail@web35508.mail.mud.yahoo.com
обсуждение исходный текст
Ответы Re: Improving performance of a query  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-performance
Hi,
 
Is there a way to improve the performance of the following query?
 
SELECT * FROM SSIRRA where
(YEAR = 2004 and CUSTOMER = 0000000004 and CODE = 00 and PART >= 00) or
(YEAR = 2004 and CUSTOMER = 0000000004 and CODE > 00) or
(YEAR = 2004 and CUSTOMER > 0000000004) or
(YEAR > 2004)
 
Thanks in advance!
 
Benkendorf

__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger
http://br.download.yahoo.com/messenger/

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

Предыдущее
От: Mark Kirkwood
Дата:
Сообщение: Re: Massive performance issues
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Improving performance of a query