Re: Are bitmap index scans slow to start?
От | Jeff Janes |
---|---|
Тема | Re: Are bitmap index scans slow to start? |
Дата | |
Msg-id | CAMkU=1z-UOitt2mtnjn=XQ8kk2cL2nAnd2MfycLwju__qC49wQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Are bitmap index scans slow to start? ("Carlo Stonebanks" <stonec.register@sympatico.ca>) |
Ответы |
Re: Are bitmap index scans slow to start?
|
Список | pgsql-performance |
My understanding of PG’s cluster is that this is a one-time command that creates a re-ordered table and doesn’t maintain the clustered order until the command is issued again. During the CLUSTER, the table is read and write locked. So, in order for me to use this I would need to set up a timed event to CLUSTER occasionally.
The EXPLAIN ANALYZE is showing it is taking a long time to prepare the bitmap (i.e.-> Bitmap Index Scan on log_2013_01_session_idx (cost=0.00..63186.52
rows=2947664 width=0) (actual time=32611.918..32611.918 rows=2772042 loops=1)" Index Cond: (session_id = 27)" the bitmap scan is actually very fast. Jeff sasys that the bitmap is not cached, so I will assume the PG general caches being created are of general use.
I think what I need to do is figure out is:
1) Why does it take 36 seconds to set up the general index caches?
В списке pgsql-performance по дате отправления: