How much time does the cache need to reset #1605
Answered
by
sidorares
PhilipAbed
asked this question in
Q&A
-
|
in docs it says that if you run same query twice, u will get the results from LRU cache,
|
Beta Was this translation helpful? Give feedback.
Answered by
sidorares
Aug 10, 2022
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
PhilipAbed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maxPreparedStatementsconnection parameter, you can set it to a low number to control how many statements single connection is used. Note that it does not give a 100% guarantee - in mysql protocol statement_close is a one way message and there is no way to know when statement is actually closed. Not sure what is LRU behaviour when you set maxPreparedStatements to 0 - this might be a way for you to "cancel caching" but needs checking. Another option would be using manualcont stmt = connection.prepare(sql); ... statement.execute(parameters); ...statement.close(). This should be not cached ( need to confirm that as well - see discussion in #80…