Re: Are bitmap index scans slow to start?

Поиск
Список
Период
Сортировка
От Carlo Stonebanks
Тема Re: Are bitmap index scans slow to start?
Дата
Msg-id 004601ce15f0$1fc6ce20$5f546a60$@sympatico.ca
обсуждение исходный текст
Ответ на Re: Are bitmap index scans slow to start?  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Ответы Re: Are bitmap index scans slow to start?  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-performance

<<Could you use CLUSTER on the table after it had been closed off?  If appropriate, that should make the queries run much faster, as elated entries will be in the same or nearby blocks on disk.

>> 

 

Technically, yes. That would really help, but the issue is scheduling. Although the logs are closed off for writes, they aren’t closed off for reads, ref PG documentation: “When a table is being clustered, an ACCESS EXCLUSIVE lock is acquired on it. This prevents any other database operations (both reads and writes) from operating on the table until the CLUSTER is finished.”

 

Not ideal, but a lot better than doing nothing at all!

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Wrong actual number of rows in the Query Plan
Следующее
От: Ao Jianwang
Дата:
Сообщение: Re: SELECT is slow on smaller table?