Re: Are bitmap index scans slow to start?

From: "Carlo Stonebanks" <stonec(dot)register(at)sympatico(dot)ca>
To: "'Gavin Flower'" <GavinFlower(at)archidevsys(dot)co(dot)nz>, "'Nikolas Everett'" <nik9000(at)gmail(dot)com>
Cc: "'Marc Mamin'" <M(dot)Mamin(at)intershop(dot)de>, "'Jeff Janes'" <jeff(dot)janes(at)gmail(dot)com>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Are bitmap index scans slow to start?
Date: 2013-02-28 20:13:50
Message-ID: 004601ce15f0$1fc6ce20$5f546a60$@sympatico.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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!

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Ao Jianwang 2013-03-01 00:30:09 Re: SELECT is slow on smaller table?
Previous Message Tom Lane 2013-02-28 17:58:49 Re: Wrong actual number of rows in the Query Plan