public inbox for [email protected]
help / color / mirror / Atom feedFrom: yudhi s <[email protected]>
To: David Mullineux <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Top -N Query performance issue and high CPU usage
Date: Sun, 1 Feb 2026 01:09:47 +0530
Message-ID: <CAEzWdqdVG=_6pFjPGHrFnq7+_vLXM1-Z=zH09WnCg9aZukY=XQ@mail.gmail.com> (raw)
In-Reply-To: <CAGsyd8Wc0Oa-863xWE6rcWk4zR=m3tCzhnGdEjvV+UytXjdvrA@mail.gmail.com>
References: <CAEzWdqd0SPkZMYNaAbERdgczkfQqLmNV5JBMmF-F9s7KjxJ0gw@mail.gmail.com>
<CAGsyd8Wc0Oa-863xWE6rcWk4zR=m3tCzhnGdEjvV+UytXjdvrA@mail.gmail.com>
>
>
>>
> Plan says it's using temp files for sorting....I would suggest you
> increase work_mem for this to avoid temp.fike creation...Although not the
> answer to all your problems, it would be a good start .
>
>
Even setting work_mem to 64MB remove all the "temp read" and showig all
memory reads, but still we are seeing similar cpu spike when executing this
query from multiple sessions and also the response time is staying same.
view thread (24+ messages) latest in thread
reply
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: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Top -N Query performance issue and high CPU usage
In-Reply-To: <CAEzWdqdVG=_6pFjPGHrFnq7+_vLXM1-Z=zH09WnCg9aZukY=XQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox