Bug #107228 | performance problem in prepare stmtment | ||
---|---|---|---|
Submitted: | 6 May 2022 7:48 | Modified: | 6 May 2022 11:14 |
Reporter: | hao chen | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S5 (Performance) |
Version: | 8.0.25/8.0.27 | OS: | Any |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
Tags: | jdbc connector, prepare statement |
[6 May 2022 7:48]
hao chen
[6 May 2022 11:14]
MySQL Verification Team
Hi, The useServerPrepStmts=true is the reason for the performance issue. Use useServerPrepStmts=false if you want higher performance. Thanks for taking interest in MySQL Server
[26 Aug 2022 11:58]
Sveta Smirnova
Hi MySQL Verification Team , I believe this limitation of the server-side prepared statements was fixed in the latest versions of Connector/J and MySQL Server.
[26 Aug 2022 12:04]
Sveta Smirnova
hao chen, can you try with the latest Connector/J? It may be related to a significant change in 8.0.22 on how the server prepares statements. In this case, client library needs to be aware of the change.