[CONJ-509] Query performance issue when using mariadb driver instead of mysql driver when connecting to aws aurara db Created: 2017-07-26 Updated: 2017-09-20 Resolved: 2017-09-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | aurora |
| Affects Version/s: | 1.4.6 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Pankaj | Assignee: | Diego Dupin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
AWS Aurara db |
||
| Description |
|
When a query is executed on database using workbench (sql client) directly, it returns in around 500 ms. For now, we have switched to mysql driver for connecting to AWS Aurara db. AWS recommends to use mariadb driver but we are planning to revert to mysql driver for now to tackle this issue. Query: Thanks. |
| Comments |
| Comment by Diego Dupin [ 2017-07-27 ] |
|
This seems to be a "second execution" issue from aurora. You could use set the option "useServerPrepStmts" to false. (This is now the default value since 1.6.x). This will correct this problem - MySQL driver use that option by default. Could you try this and confirm the issue (and then report that to Amazon) |
| Comment by Diego Dupin [ 2017-08-23 ] |
|
Mandaliya, did you read previous comment, and set option "useServerPrepStmts" to false / use last driver version ? |
| Comment by Diego Dupin [ 2017-09-20 ] |
|
closing since no response from creation since more than a month. |