query performance issue

From: Samir Magar <samirmagar8(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: query performance issue
Date: 2017-11-15 09:33:39
Message-ID: CAA=to3gXpr94TqSAYXT9zwxYwY_xKrLFnu8ZJNgJKP-kWza2CA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hello,
I am having performance issues with one of the query.
The query is taking 39 min to fetch 3.5 mil records.

I want to reduce that time to 15 mins.
could you please suggest something to its performance?

server configuration:
CPUs = 4
memory = 16 GM
shared_buffers = 3 GB
work_mem = 100MB
effective_cache_size = 12 GB

we are doing the vacuum/analyze regularly on the database.

attached is the query with its explain plan.

Thanks,
Samir Magar

Attachment Content-Type Size
query with access plan.txt text/plain 6.9 KB

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Pavel Stehule 2017-11-15 09:43:23 Re: query performance issue
Previous Message legrand legrand 2017-11-14 21:26:16 Re: Query planner gaining the ability to replanning after start of query execution.