From: Justin Pryzby <pryzby@telsasoft.com>
To: aditya desai <admad123@gmail.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Oracle_FDW table performance issue
Date: Mon, 11 Jul 2022 07:13:08 -0500
Message-ID: <20220711121308.GS13040@telsasoft.com> (raw)
In-Reply-To: <CAN0SRDHGDsW0A1cyN=4x9sJNLRbRMP27TfvGbHDikcg2ZBNB9A@mail.gmail.com>
References: <CAN0SRDHGDsW0A1cyN=4x9sJNLRbRMP27TfvGbHDikcg2ZBNB9A@mail.gmail.com>
On Mon, Jul 11, 2022 at 05:38:34PM +0530, aditya desai wrote:
> Hi,
> I have one Oracle fdw table which is giving performance issue when joined
> local temp table gives performance issue.
>
> select * from oracle_fdw_table where transaction_id in ( select
> transaction_id from temp_table) ---- 54 seconds. Seeing HASH SEMI JOIN in
> EXPLAIN PLAN. temp_table has only 74 records.
You'd have to share the plan
https://wiki.postgresql.org/wiki/Slow_Query_Questions
Do the tables have updated stats ?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: pryzby@telsasoft.com, admad123@gmail.com, pgsql-performance@lists.postgresql.org
Subject: Re: Oracle_FDW table performance issue
In-Reply-To: <20220711121308.GS13040@telsasoft.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox