Re: Advise needed for a join query with a where conditional - Mailing list pgsql-performance

From Jim Nasby
Subject Re: Advise needed for a join query with a where conditional
Date
Msg-id 566B6140.9040703@BlueTreble.com
Whole thread Raw
In response to Advise needed for a join query with a where conditional  (ankur_adwyze <ankur@adwyze.com>)
List pgsql-performance
On 12/10/15 10:38 PM, ankur_adwyze wrote:
> I have a Rails app with Postgres db. For certain reports, I have to join
> multiple tables. However, certain join queries are dog slow and I am
> wondering if I am missing any index.

My guess is that the planner is coming up with a bad estimate. Please
post the output of EXPLAIN ANALYZE, preferably via
http://explain.depesz.com/
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


pgsql-performance by date:

Previous
From: Jim Nasby
Date:
Subject: Re: checkpoints, proper config
Next
From: Andreas Kretschmer
Date:
Subject: Re: partitioned table set and indexes