Skip to content

Setting the parameter MaxStatementCacheSize in firebird.conf file #8569

Closed Answered by mrotteveel
NikolayUkleyko asked this question in Q&A
Discussion options

You must be logged in to vote

The statement caches stores the prepared plan for a specific statement text. So, simplified, if you prepare a statement, the server will check if it already has a plan for that statement text (and some other details), and if so, it uses that instead of preparing the whole plan anew. If the statement is not already in the cache, it will prepare it, and if possible store it in the cache.

In other words, if the cache size is 0, nothing is ever cached, so each call to prepare will prepare the statement anew, instead of being able to reuse the information resulting from a previous prepare. That is basically the same behaviour as in older versions that did not have a statement cache.

Why do you…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by NikolayUkleyko
Comment options

You must be logged in to vote
12 replies
@asfernandes
Comment options

@mrotteveel
Comment options

@asfernandes
Comment options

@asfernandes
Comment options

@mrotteveel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants