Re: [GENERAL] Large data and slow queries

Поиск
Список
Период
Сортировка
От vinny
Тема Re: [GENERAL] Large data and slow queries
Дата
Msg-id fa860607f81e5857bf8220862b0389af@xs4all.nl
обсуждение исходный текст
Ответ на Re: [GENERAL] Large data and slow queries  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
On 2017-04-19 09:48, John R Pierce wrote:
> On 4/19/2017 12:31 AM, vinny wrote:
>> Given the number of records, my first thought was either partitioning
>> or partial-indexes.
>> The fewer rows are in the index, the quicker it will be to check,
>> and it's not a lot of work to create separate indexes for lat/long
>> ranges or dates.
>
> that only works if the planner can figure out which partitions to use
> in advance, otherwise it ends up having to scan all the partitions.
>
>
> --
> john r pierce, recycling bits in santa cruz


True, but then again, the proposed queries are quite straight-forward
so I don't expect that to be a problem, really.

Worth a test, if only to see if it helps.


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

Предыдущее
От: Samuel Williams
Дата:
Сообщение: Re: [GENERAL] Large data and slow queries
Следующее
От: "Martijn Tonies \(Upscene Productions\)"
Дата:
Сообщение: Re: [GENERAL] Large data and slow queries