| From: | Samuel Williams <space(dot)ship(dot)traveller(at)gmail(dot)com> | 
|---|---|
| To: | pgsql-general <pgsql-general(at)postgresql(dot)org> | 
| Subject: | Re: Large data and slow queries | 
| Date: | 2017-04-19 10:12:31 | 
| Message-ID: | CAHkN8V8zLKxyi3s=jqydFCovkVCMwVnMNKGm8moFw7WsbpzWDA@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
> Did that 50% performance gain come from just the datatype, or that fact that the index became smaller?
How would one measure this?
On 19 April 2017 at 19:48, John R Pierce <pierce(at)hogranch(dot)com> 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
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Karsten Hilbert | 2017-04-19 10:14:05 | Re: potential extension of psql's \df+ ? | 
| Previous Message | Pavel Stehule | 2017-04-19 10:00:04 | Re: potential extension of psql's \df+ ? |