Re: waiting for client write - Mailing list pgsql-performance

From Jeff Janes
Subject Re: waiting for client write
Date
Msg-id CAMkU=1z-bbdLGPEScnpHaT3ye-jexrvR7gwYsbyNy8oOnD252A@mail.gmail.com
Whole thread Raw
In response to Re: waiting for client write  (Ayub Khan <ayub.hp@gmail.com>)
Responses Re: waiting for client write
List pgsql-performance
On Thu, Jun 10, 2021 at 4:06 AM Ayub Khan <ayub.hp@gmail.com> wrote:
I did profiling of the application and it seems most of the CPU consumption is for executing the stored procedure. Attached is the screenshot of the profile

That is of your tomcat server?  If that is really a profile of your CPU time (rather than wall-clock time) then it seems pretty clear your problem is on the client side, so there isn't much that can be done about it on the database server.

Cheers,

Jeff

pgsql-performance by date:

Previous
From: Joshua Drake
Date:
Subject: Re: AWS forcing PG upgrade from v9.6 a disaster
Next
From: "Dean Gibson (DB Administrator)"
Date:
Subject: Re: AWS forcing PG upgrade from v9.6 a disaster