Re: slow performance with cursor - Mailing list pgsql-performance

From Tom Lane
Subject Re: slow performance with cursor
Date
Msg-id 2954034.1624644261@sss.pgh.pa.us
Whole thread Raw
In response to slow performance with cursor  (Ayub Khan <ayub.hp@gmail.com>)
List pgsql-performance
Ayub Khan <ayub.hp@gmail.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



pgsql-performance by date:

Previous
From: Ayub Khan
Date:
Subject: Re: slow performance with cursor
Next
From: Manuel Weitzman
Date:
Subject: Re: Planning performance problem (67626.278ms)