Re: Creating tons of tables to support a query

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Creating tons of tables to support a query
Дата
Msg-id 20020908235155.GA27425@wolff.to
обсуждение исходный текст
Ответ на Creating tons of tables to support a query  (Jan Ploski <jpljpl@gmx.de>)
Список pgsql-general
On Sun, Sep 08, 2002 at 23:58:44 +0200,
  Jan Ploski <jpljpl@gmx.de> wrote:
>
> select count(*) from message where sectionID = ? and dateSent > ?

If the dateDent is the same for each query, you should probably be doing
it in one query. Something like:
select sectionID, count(*) from message where dateSent > ? group by sectionID

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Creating tons of tables to support a query
Следующее
От: Jan Ploski
Дата:
Сообщение: Re: Creating tons of tables to support a query