Re: postgresql and openmosix migration

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: postgresql and openmosix migration
Дата
Msg-id 20040622175328.GA20086@wolff.to
обсуждение исходный текст
Ответ на Re: postgresql and openmosix migration  ("Bill" <bill@math.uchicago.edu>)
Список pgsql-performance
On Tue, Jun 22, 2004 at 12:31:15 -0500,
  Bill <bill@math.uchicago.edu> wrote:
> Ok, so maybe someone on this group will have a better idea.  We have a
> database of financial information, and this has literally millions of
> entries.  I have installed indicies, but for the rather computationally
> demanding processes we like to use, like a select query to find the
> commodity with the highest monthly or annual returns, the computer generally
> runs unacceptably slow.  So, other than clustring, how could I achieve a
> speed increase in these complex queries?  Is this better in mysql or
> postgresql?

Queries using max (or min) can often be rewritten as queries using ORDER BY
and LIMIT so that they can take advantage of indexes. Doing this might help
with some of the problems you are seeing.
If you commonly query on aggregated data it might be better to create
derived tables of the aggregated data maintained by triggers, and query
against them. If you do lots of selects relative to inserts and updates,
this could be a big win.

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

Предыдущее
От: "Bill"
Дата:
Сообщение: Re: postgresql and openmosix migration
Следующее
От:
Дата:
Сообщение: Re: postgresql and openmosix migration