Re: name search query speed

Поиск
Список
Период
Сортировка
От Markus Schaber
Тема Re: name search query speed
Дата
Msg-id 422789C0.20201@logix-tt.com
обсуждение исходный текст
Ответ на Re: name search query speed  (Jeremiah Jahn <jeremiah@cs.earlham.edu>)
Список pgsql-performance
Hi, Jeremiah,

Jeremiah Jahn schrieb:
> doesn't that cause two queries? I used to do it that way and cut my time
> substantially by counting in-line. Even though the results were cached
> it still took more time.

This sounds rather strange.

> Also since the tables is constantly be updated
> the returned total would not always match the number of results on the
> second query.

Did you run both queries in the same transaction, with transaction
isolation level set to serializable? If yes, you found a serious bug in
PostgreSQL transaction engine.

Markus

--
Markus Schaber | Dipl. Informatiker | Software Development GIS

Fight against software patents in EU! http://ffii.org/
                                      http://nosoftwarepatents.org/

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

Предыдущее
От: John Arbash Meinel
Дата:
Сообщение: Re: name search query speed
Следующее
От: "Ken Egervari"
Дата:
Сообщение: Re: Help with tuning this query (with explain analyze finally)