Hi!
I'm working with mysql and java and use rewriteBatchedStatements in some cases.
My question is, when a batched statement is rewritten, does the connector use a new client-side prepared statement for the new statement generated from the batch? Or this new statement just has all the info inside it (instead of using placeholders for params) and is directly executed without preparing it?
If it's a prepared statement, then I have two doubts:
- Does it use ? placeholders for params or it inlines data?
- Is this prepared statement cacheable? Will it be cached if cachePrepStmts=true?
Thanks!
Juan
I'm working with mysql and java and use rewriteBatchedStatements in some cases.
My question is, when a batched statement is rewritten, does the connector use a new client-side prepared statement for the new statement generated from the batch? Or this new statement just has all the info inside it (instead of using placeholders for params) and is directly executed without preparing it?
If it's a prepared statement, then I have two doubts:
- Does it use ? placeholders for params or it inlines data?
- Is this prepared statement cacheable? Will it be cached if cachePrepStmts=true?
Thanks!
Juan