Subject | Re: [firebird-support] FB sql compilation: buffered or not? |
---|---|
Author | Jonathan Neve |
Post date | 2004-01-12T18:21:35Z |
Martijn Tonies wrote:
after that point, it's no longer open (active). Why get hung up on words?
prepared will still be prepared?
Thanks!
Jonathan Neve.
[Non-text portions of this message have been removed]
>Hi,Getting committed or rolled back is what I call getting closed. Because
>
>
>
>>>>In that light is makes
>>>>sense to tell RDBMS that some statements have to be in the buffer
>>>>permanently, e.g. those executed 10x per second. Well, this is
>>>>
>>>>
>impossible
>
>
>>>>probably as the buffer is not shared between connections.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>Something that is likely to appear in a future version is a compiled
>>>statement cache which will be cross connection.
>>>
>>>
>>>
>>Ah ha!!!
>>
>>That would be excellent!
>>
>>Especially as, over a slow connection, the slowest thing is the
>>prepares. So if you only have to do it once, for all the users, it could
>>make things much faster.
>>Would this cache be persistent (that is, you would be able to prepare
>>statements once and for all), or would they get unprepared as soon as
>>the transaction that prepared them gets closed?
>>
>>
>
>Transactions don't get closed, they get committed or rolled back.
>
>
after that point, it's no longer open (active). Why get hung up on words?
>Prepared statements have nothing to do with transactions, only withOk. So does that mean that if I commit my transaction, the statements I
>connections.
>
prepared will still be prepared?
>Of course, in a future release, this might be different, but implementationOf course. I realise that, and that's why I asked the question I asked...
>has not yet started.
>
Thanks!
Jonathan Neve.
[Non-text portions of this message have been removed]