Re: slow performance with cursor

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ayub Khan <ayub(dot)hp(at)gmail(dot)com>
Cc: Pgsql Performance <pgsql-performance(at)lists(dot)postgresql(dot)org>
Subject: Re: slow performance with cursor
Date: 2021-06-25 18:04:21
Message-ID: 2954034.1624644261@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Ayub Khan <ayub(dot)hp(at)gmail(dot)com> writes:
> 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.

Possibly twiddling cursor_tuple_fraction would help. The default setting
tends to encourage fast-start plans, which might be counterproductive
if you're always fetching the entire result in one go.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Manuel Weitzman 2021-06-29 19:26:20 Re: Planning performance problem (67626.278ms)
Previous Message Ayub Khan 2021-06-25 16:37:53 Re: slow performance with cursor