Re: Can this query go faster???

Поиск
Список
Период
Сортировка
От Csaba Nagy
Тема Re: Can this query go faster???
Дата
Msg-id 1133872377.4779.200.camel@coppola.muc.ecircle.de
обсуждение исходный текст
Ответ на Re: Can this query go faster???  (Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>)
Список pgsql-performance
On Tue, 2005-12-06 at 13:20, Joost Kraaijeveld wrote:
[snip]
> Ah, a misunderstanding: I only need to calculate an index if the user
> wants a record that is not in or adjacent to the cache (in which case I
> can do a "select values > last value in the cache". So  I must always
> materialize all rows below the wanted index.

In this case the query will very likely not work faster. It must always
visit all the records till the required offset. If the plan should be
faster using the index, then you probably need to analyze (I don't
recall from your former posts if you did it recently or not), in any
case you could check an "explain analyze" to see if the planner is
mistaken or not - you might already know this.

Cheers,
Csaba.



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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Performance degradation after successive UPDATE's
Следующее
От: Ron
Дата:
Сообщение: Re: Can this query go faster???