15.12.2017 11:20, Adriano dos Santos Fernandes пишет:
On 15/12/2017 07:03, Vlad Khorsun via Firebird-devel wrote:
15.12.2017 10:45, liviuslivius wrote:
Hi Vlad,


"This temporary blobs could be released on commit (rollback) only"

just curious, why it can not be released after it is used?

   When its become unused ? That blobs returned to the client aplication
and should be accessible until transaction end.

Regards,
Vlad

PS In theory, it should be possible to postpone transliteration into
attachment charset until application opens blob. But i see no easy\direct
way to do it.

I think fact that blob id is returned and really opened only when user
opens it is an implementation detail.

  Let me not agree here. Blob usage is not an implementation detail as we have
special Blob API with separate open\close operations.

If for performance reasons we decide to open it and send content withing
the message, we can.

It's like remote doing pre-fetch.

  This is different kind of optimization tradeoff. It is about bandwith (amount
of data sent) and roundtrips. And it is not good for every case.

So I think we shouldn't bother. User asked for it so will pay the cost.

  The one of the rules of optimization: if you can avoid to do something - 
avoid it.

Regards,
Vlad

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to