From: | Ayub Khan <ayub(dot)hp(at)gmail(dot)com> |
---|---|
To: | Pgsql Performance <pgsql-performance(at)lists(dot)postgresql(dot)org> |
Subject: | Re: slow performance with cursor |
Date: | 2021-07-01 16:29:31 |
Message-ID: | CAHdeyELrmZ+dVNuJhAERV7AucgZCGHTO8A_L5+g8CRTC4qZ2pQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
I set the cursor_tuple_fraction to 1 now I am seeing high cpu for fetach
all in
The number of rows returned is less than 200. Why is the high cpu being
shown for fetch all
-Ayub
On Fri, 25 Jun 2021, 19:09 Ayub Khan, <ayub(dot)hp(at)gmail(dot)com> wrote:
>
> I am using postgresql 12 and using cursors in a stored procedure,
> executing procedure which has cursor is slowing down the call. However if I
> do not use the cursor and just execute the queries using JDBC (Java client)
> it's fast.
>
> Is there any setting which needs to be modified to improve the performance
> of cursors. Also facing slow response with reading blobs (images) from db.
> Not an ideal way for storing images in db but this is a legacy application
> and wanted to check if there a quick tweak which can improve the
> performance while reading blob data from db.
>
> --Ayub
>
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Pryzby | 2021-07-01 16:32:31 | Re: slow performance with cursor |
Previous Message | Manuel Weitzman | 2021-06-30 20:56:14 | Re: Planning performance problem (67626.278ms) |