Re: Optimizing select count query which often takes over 10 seconds

Поиск
Список
Период
Сортировка
От Alexander Farber
Тема Re: Optimizing select count query which often takes over 10 seconds
Дата
Msg-id CAADeyWhbf8YLu2CWE4fagE08y54wkcF2nGqYqw71yMin9d+bhw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Optimizing select count query which often takes over 10 seconds  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: Optimizing select count query which often takes over 10 seconds  (Alexander Farber <alexander.farber@gmail.com>)
Список pgsql-general
Thanks -

On Sun, Jan 27, 2013 at 8:41 PM, Jeff Janes <jeff.janes@gmail.com> wrote:
> Once the week is over, materialize the medals for that week.  Then the
> live part of the query only needs to specify the currently live week,
> not the entire history.  And in that case, the query should be quite
> efficient if you have in index on both week and money.

I will try that!


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

Предыдущее
От: Jan Strube
Дата:
Сообщение: Re: Prevent out of memory errors by reducing work_mem?
Следующее
От: Jose Soares
Дата:
Сообщение: database design best pratice help