Re: Have I b0rked something? Slow comparisons on "where x in (...)"
В списке pgsql-general по дате отправления:
| От | Richard Huxton |
|---|---|
| Тема | Re: Have I b0rked something? Slow comparisons on "where x in (...)" |
| Дата | |
| Msg-id | 4639AA68.2040003@archonet.com обсуждение исходный текст |
| Ответ на | Re: Have I b0rked something? Slow comparisons on "where x in (...)" (Stephen Harris <lists@spuddy.org>) |
| Ответы |
Re: Have I b0rked something? Slow comparisons on "where x in (...)"
|
| Список | pgsql-general |
Stephen Harris wrote: > On Wed, May 02, 2007 at 12:45:08PM -0700, Dann Corbit wrote: >> Have you done a vacuum on the table recently? > > We vacuum daily and cluster weekly after the nightly activities have been > performed. > >> IN list, then the IN list might benefit from a bit of analysis for > > The IN list is just a set of integers (it's an integer index) generated > from some selects on other tables earlier in our processing. I don't > have any choice as to what is in the IN list :-) Try creating a temporary table, populating with the list and joining against it. That's probably your best bet for a long list of target values. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера