Skip to content
Discussion options

You must be logged in to vote
  1. currently there is no way to opt out. There is maxPreparedStatements connection 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 manual cont stmt = connection.prepare(sql); ... statement.execute(parameters); ...statement.close(). This should be not cached ( need to confirm that as well - see discussion in #80…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@PhilipAbed
Comment options

@sidorares
Comment options

@PhilipAbed
Comment options

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