Re: table configuration tweak for performance gain.

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: table configuration tweak for performance gain.
Дата
Msg-id 20041117024526.GA45526@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: table configuration tweak for performance gain.  ("Harvey, Allan AC" <HarveyA@OneSteel.com>)
Список pgsql-general
On Wed, Nov 17, 2004 at 12:41:20PM +1100, Harvey, Allan AC wrote:

> mill2=> explain analyse select count(*) from history where pointname = 'MILL2-SPEED' and dt > (now() - interval '5
minutes')::timestamp\g

How typical is this query?  How many distinct values does pointname
have?  Have you considered adding an index on pointname or a multicolumn
index on pointname and dt?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: "Harvey, Allan AC"
Дата:
Сообщение: Re: table configuration tweak for performance gain.
Следующее
От: "Sim Zacks"
Дата:
Сообщение: Re: PostGreSQL to Access Updatable recordset