Support client side (emulated) prepared statements
See original GitHub issueMy team is using Vitess as a solution for scaling MySql horizontality, of course with the help of mysql jdbc. We are going in the direction of switching to a reactive stack and we tested spring-data-r2dbc + r2dbc-mysql. Vitess has a mysql server implementation, but not completely.
Communication between this driver and Vitess was very good until we tested the prepared statements. Vitess doesn’t support server-side prepared statements, as I can see, they were implemented here https://github.com/mirromutth/r2dbc-mysql/issues/4.
Vitess team had a similar report, and it looks like this feture will not be supported by them. https://github.com/vitessio/vitess/issues/4386
I also think it would be useful to have a configuration option, similar to existing mysql jdbc useServerPrepStmts
configuration option.
It’s left to the user to choose whether to use server side, or to save one database roundtrip and use client side prepared statements.
https://vladmihalcea.com/how-does-the-mysql-jdbc-driver-handle-prepared-statements/
Also useServerPrepStmts
is false
by default for mysql jdbc, apparently here is equal to true
, which is a change in behaviour for users who make migration from jdbc to reactive stack.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top GitHub Comments
Roadmap:
build
now).Great, I can confirm that it works, thanks 🎉