Subject | Re: [firebird-support] FB sql compilation: buffered or not? |
---|---|
Author | Martijn Tonies |
Post date | 2004-01-12T10:51:06Z |
Hi,
can be prepared, on a per-connection level. If you keep the statement
handle (in Delphi/Java terms: keep the statement prepared), you can
reuse the statement handle, bind the parameters and execute it.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
> >(B) will be much faster. Prepared statement aren't re-evaluated,No. Please read again: there's no buffer on the server side. Statements
> >but are "buffered". But only on the connection level, not across
> >different connections.
>
> Is it possible to:
>
> - specify how large the "buffer" can be?
can be prepared, on a per-connection level. If you keep the statement
handle (in Delphi/Java terms: keep the statement prepared), you can
reuse the statement handle, bind the parameters and execute it.
> - get some statistics of its performance: how many staments are found andhow
> many compiled?If you re-execute the statement, it's always recompiled. See above.
> - to "pin" some statements permanently in the buffer: the issue is thatmakes
> "lexical SQL" (kind of "select .. where name='john' ") is wasting space of
> any buffer by forcing "good SQL" statements out of it. In that light is
> sense to tell RDBMS that some statements have to be in the bufferSee above.
> permanently, e.g. those executed 10x per second. Well, this is impossible
> probably as the buffer is not shared between connections.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com