slow performance with cursor

From: Ayub Khan <ayub(dot)hp(at)gmail(dot)com>
To: Pgsql Performance <pgsql-performance(at)lists(dot)postgresql(dot)org>
Subject: slow performance with cursor
Date: 2021-06-25 16:09:31
Message-ID: CAHdeyE+0tG-TbUhfznXMu4cycK2U13zTa-qw-fZ7_PBQ_QW69g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Justin Pryzby 2021-06-25 16:21:06 Re: slow performance with cursor
Previous Message Justin Pryzby 2021-06-25 04:22:28 Re: Partition column should be part of PK