Re: Slow query + why bitmap index scan??

Поиск
Список
Период
Сортировка
От Florian Weimer
Тема Re: Slow query + why bitmap index scan??
Дата
Msg-id 82y66qp7al.fsf@mid.bfk.de
обсуждение исходный текст
Ответ на Slow query + why bitmap index scan??  (Laszlo Nagy <gandalf@shopzeus.com>)
Ответы Re: Slow query + why bitmap index scan??  (Laszlo Nagy <gandalf@shopzeus.com>)
Список pgsql-performance
* Laszlo Nagy:

> This query:
>
> select hid from product_price_history where id=35547581
>
> Returns 759 rows in 8837 msec! How can this be that slow???

If most records are on different heap pages, processing this query
requires many seeks.  11ms per seek is not too bad if most of them are
cache misses.

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

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

Предыдущее
От: Laszlo Nagy
Дата:
Сообщение: Slow query + why bitmap index scan??
Следующее
От: Mladen Gogala
Дата:
Сообщение: The good, old times