| От | Tom Lane |
|---|---|
| Тема | Re: Index usage for BYTEA column in OR/IN clause |
| Дата | |
| Msg-id | 15883.1080488929@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Index usage for BYTEA column in OR/IN clause (David Garamond <lists@zara.6.isreserved.com>) |
| Ответы |
Re: Index usage for BYTEA column in OR/IN clause
|
| Список | pgsql-general |
David Garamond <lists@zara.6.isreserved.com> writes: > The table contain +- 1 mil records, all of the actual version of the > queries below return < 10 rows, so an index should be used. Using an > index scan, the query ran < 100ms. Using seq scan, 2-3 secs. So there is > no good reason why a seq scan should be used, especially in a case of > b='foo' or b='bar'. [shrug...] We can't possibly diagnose a bad-plan-choice problem with the amount of information you've provided. See http://techdocs.postgresql.org/guides/SlowQueryPostingGuidelines regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера