Re: 7.3.1 New install, large queries are slow

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: 7.3.1 New install, large queries are slow
Дата
Msg-id 1042727012.82534.50.camel@jester
обсуждение исходный текст
Ответ на Re: 7.3.1 New install, large queries are slow  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-performance
On Thu, 2003-01-16 at 07:29, Ron Johnson wrote:
> On Thu, 2003-01-16 at 03:03, Roman Fail wrote:
> > ***********************
> > > Josh Berkus wrote:
> > > Hey, Roman, how many records in BatchDetail, anyway?
> >
> > 23 million.
>
> What are the indexes on batchdetail?
>
> There's one on batchid and a seperate one on tranamount?
>
> If so, what about dropping them and create a single multi-segment
> index on "batchid, tranamount".  (A constraint can then enforce
> uniqueness on batchid.

Thats a good step.  Once done, CLUSTER by that index -- might buy 10 to
20% extra.


--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

Вложения

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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: schema/db design wrt performance
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: schema/db design wrt performance