Re: how to improve perf of 131MM row table? - Mailing list pgsql-performance

From Aaron Weber
Subject Re: how to improve perf of 131MM row table?
Date
Msg-id 05c5e35e-3cd8-4ff7-bb65-ef0df61b345c@email.android.com
Whole thread Raw
In response to Re: how to improve perf of 131MM row table?  (Shaun Thomas <sthomas@optionshouse.com>)
List pgsql-performance
Will get what you asked for ASAP. Thanks for your time.
--
Aaron

On June 25, 2014 5:55:29 PM EDT, Shaun Thomas <sthomas@optionshouse.com> wrote:
On 06/25/2014 04:40 PM, Aaron Weber wrote:

In the meantime, I guess I wasn't clear about some other particulars
The query's where clause is only an "IN", with a list of id's (those
I mentioned are the PK), and the join is explicitly on the PK (so,
indexed).

Indexed doesn't mean indexed if the wrong datatypes are used. We need to
see the table and index definitions, and a sample query with EXPLAIN
ANALYZE output.

An IN with 50 int values took 23sec to return (by way of example).

To me, this sounds like a sequence scan, or one of your key matches so
many rows, the random seeks are throwing off your performance. Of
course, I can't confirm that without EXPLAIN output.

pgsql-performance by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: how to improve perf of 131MM row table?
Next
From: AJ Weber
Date:
Subject: Re: how to improve perf of 131MM row table?