Cluster(ing) to help joins?

Поиск
Список
Период
Сортировка
От pierre@desertmoon.com
Тема Cluster(ing) to help joins?
Дата
Msg-id 19981015135323.29938.qmail@desertmoon.com
обсуждение исходный текст
Список pgsql-sql
Hi there.

I'm working with a DB under 6.3.2 that has a little over 2million rows of
data spread across 8-10 tables. The question I have is when I attempt to
join more than 3 tables I get a HUGE performence hit, even if the number
of rows returned by the first set of clauses is small.

If I perform part of the join minus a single table the performance is great.
So why is this? Can using clusters help in this kind of situation?

I did discover that building multi-key indexes did help the performance a bit
but it is still way too slow at times.

Oh...and can someone tell me what this error message means?

ERROR:  ExecInitIndexScan: both left and right op's are rel-vars

Thanks for any and all help...

-=pierre

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

Предыдущее
От: Thomas Good
Дата:
Сообщение: Re: [SQL] Using the IN predicate in an UPDATE...
Следующее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [SQL] Optimizing performance using indexes