Re: Why a bitmap scan in this case?

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: Why a bitmap scan in this case?
Дата
Msg-id CAKAnmmL327t5MRJ2uonQ3JB5bLegRbfa-WtpaTNBnbJ1iVef5Q@mail.gmail.com
обсуждение исходный текст
Ответ на Why a bitmap scan in this case?  (Jon Zeppieri <zeppieri@gmail.com>)
Ответы Re: Why a bitmap scan in this case?
Список pgsql-performance
Why wouldn't it do an index (or, really, an index only) scan in this case

Well, it did do an index scan (and a bitmap scan is a pretty good solution here), but as to why no indexonly scan, there is probably not enough assurance that it won't have to hit the heap heavily anyway. Try doing a SET enable_bitmapscan=0; and re-run with EXPLAIN ANALYZE. If you see a large number of "Heap Fetches", that could be why. Vacuum the table and try again after doing SET enable_bitmapscan=1;

Cheers,
Greg



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