Re: Help with optimizing a query over hierarchical data

Поиск
Список
Период
Сортировка
От Claudio Freire
Тема Re: Help with optimizing a query over hierarchical data
Дата
Msg-id CAGTBQpbXePRsCqsGK_x1MQ9bej-jCNnpPuV52aPMSbDZUNoQFg@mail.gmail.com
обсуждение исходный текст
Ответ на Help with optimizing a query over hierarchical data  (Damon Snyder <damon@huddler-inc.com>)
Ответы Re: Help with optimizing a query over hierarchical data  (Damon Snyder <damon@huddler-inc.com>)
Список pgsql-performance
On Fri, Feb 28, 2014 at 5:01 PM, Damon Snyder <damon@huddler-inc.com> wrote:
> The primary query that I'm trying to optimize executes in about 1600ms on my
> laptop and about 800ms on production-like hardware (more for the score
> version). My target is to get the data fetch down below 100ms if possible.

Could you post some explain analyze of those particular queries?

> If you have any suggestions it would be greatly appreciated. Am I missing
> something obvious? Is there a logically equivalent alternative that would be
> more efficient?

I'd suggest de-normalizing a bit. For instance, why don't you put the
score right into the object? I'm sure the indirection is hurting.


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

Предыдущее
От: Damon Snyder
Дата:
Сообщение: Help with optimizing a query over hierarchical data
Следующее
От: "acanada"
Дата:
Сообщение: Re: Query taking long time