Re: need suggestion on querying big tables

From: Paul Smith <paul(at)pscs(dot)co(dot)uk>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: need suggestion on querying big tables
Date: 2022-12-05 12:18:12
Message-ID: 42cce6d0-0c4d-1e78-224f-f2908a3d536a@pscs.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 05/12/2022 12:14, Bo Guo wrote:
> Partitioning the table if possible should also help.

This really only helps if the partitioning is relevant to the query.
Otherwise it can slow things down.

Eg, if you partition on date, and search on date, the partitioning will
probably help, but if you partition on date, and search on name, it'll
be no quicker, and will possibly be slower.

Paul

--

Paul Smith Computer Services
Tel: 01484 855800
Vat No: GB 685 6987 53

Sign up for news & updates at http://www.pscs.co.uk/go/subscribe

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2022-12-05 14:45:08 Re: need suggestion on querying big tables
Previous Message Bo Guo 2022-12-05 12:14:05 Re: need suggestion on querying big tables