Re: Performance of CLUSTER

Поиск
Список
Период
Сортировка
От Shaun Thomas
Тема Re: Performance of CLUSTER
Дата
Msg-id 4FD5FD5C.5040203@optionshouse.com
обсуждение исходный текст
Ответ на Re: Performance of CLUSTER  (Mark Thornton <mthornton@optrak.com>)
Список pgsql-performance
On 06/11/2012 09:02 AM, Mark Thornton wrote:

> I didn't think the process was using even the 500m it ought to have
> had available, whereas creating an index did appear to use that much.
> Note though that I didn't stay up all night watching it!

You'd be surprised. If you look in your base/pgsql_tmp directory during
a cluster of that table (make a copy of it if you don't want to
interfere with a running system) you should see that directory fill with
temporary structures, mostly during the index rebuild portions.

It also wouldn't hurt to bootstrap system cache with the contents of
that table. Do an explain analyze on SELECT * with no where clause and
all of that table should be in memory.

Oh, actually that reminds me... does your 10GB table fit into memory? If
not, that might explain it right there.

--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604
312-444-8534
sthomas@optionshouse.com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email

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

Предыдущее
От: Mark Thornton
Дата:
Сообщение: Re: Performance of CLUSTER
Следующее
От: Shaun Thomas
Дата:
Сообщение: Re: Performance of CLUSTER