Subject Re: [firebird-support] UDF "returning" BLOB slow after first call
Author Dimitry Sibiryakov
23.04.2018 16:18, tvdien@... [firebird-support] wrote:
> It seems to be that call to blob_put_segment that becomes slow. At first usage of the UDF
> it's almost instant, and after that it takes 15ms for every invocation.
>
> What causes this and can I avoid it?

Data, returned from UDF as a BLOB, are stored in database and kept there until end of
transaction where UDF has been called. More returned data - bigger database, slower access
to it.
Think twice if you really need return BLOB from UDF.
Commit the transaction as soon as possible.

--
WBR, SD.