Need help on Query Tunning and Not using the Index Scan

From: "Kumar, Mukesh" <MKumar(at)peabodyenergy(dot)com>
To: postgres performance list <pgsql-performance(at)postgresql(dot)org>
Cc: MUKESH KUMAR <mukesh(dot)kumar14(at)tcs(dot)com>
Subject: Need help on Query Tunning and Not using the Index Scan
Date: 2022-05-20 07:37:44
Message-ID: CH0P221MB047466D1A74C13298CD84B30DED39@CH0P221MB0474.NAMP221.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi Team,

We are facing an issue in running the query which takes at least 30 sec to run in PostgreSQL.

We have tried to create the indexes and done the maintenance and still that query is taking same time.

Below are the explain plan for the query.

https://explain.depesz.com/s/sPo2#html

We have noticed that maximum time it is takin is do a Seq Scan on Table ps_delay_statistic which consist of approx. 35344812 records .

Can anyone please help on the above issue.

Thanks and Regards,
Mukesh Kumar

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message aditya desai 2022-05-20 08:27:50 Selecting RAM and CPU based on max_connections
Previous Message Justin Pryzby 2022-05-13 04:08:28 Re: DB connection issue suggestions