rewrite in to exists?

Поиск
Список
Период
Сортировка
От LN Cisneros
Тема rewrite in to exists?
Дата
Msg-id 20399973.1063861169740.JavaMail.root@rowlf.psp.pas.earthlink.net
обсуждение исходный текст
Список pgsql-performance
I'm on 7.3.4 and this query gets horrible performance.  Is there a way to rewrite it with an exists or some way to get
betterperformance? 

select code, id, name, date_of_service
  from tbl
where date_of_service in
      (select date_of_service
         from tbl
        where xxx >= '29800'
          and xxx <= '29909'
          and code = 'XX')
  and client_code = 'XX'
order by  id, date_of_service;

Thanks!




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

Предыдущее
От: Christopher Browne
Дата:
Сообщение: Re: Is there a reason _not_ to vacuum continuously?
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: rewrite in to exists?