Re: Slow query performance on large table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Slow query performance on large table
Дата
Msg-id 25725.1046798426@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Slow query performance on large table  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-performance
Robert Treat <xzilla@users.sourceforge.net> writes:
> Maybe it's just me, but I get the feeling you need to work some regular
> reindexing into your maintenance schedule.

Or at least, more vacuuming...

> Given your query is using
> between, I don't think it would use the index on the time field anyway
> (and explain analyze seems to be supporting this). Rewrite it so that
> you have a and time > foo and time < bar and I think you'll see a
> difference.

No, you won't, because that's exactly what BETWEEN is.

            regards, tom lane

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

Предыдущее
От: "Paul McKay"
Дата:
Сообщение: Re: Slow query performance on large table
Следующее
От: Tomasz Myrta
Дата:
Сообщение: Re: Slow query performance on large table