[CONJ-99] Support for batch statements rewrite Created: 2014-05-12 Updated: 2015-10-20 Resolved: 2014-10-21 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | None |
| Affects Version/s: | 1.1.7 |
| Fix Version/s: | 1.1.8 |
| Type: | Task | Priority: | Minor |
| Reporter: | Lennart Schedin | Assignee: | Massimo Siani (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Long network delay between client and server. |
||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
Mysql JDBC Connector has a rewriteBatchedStatements proptery (http://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html) that does 2 things: Would it be possible to implement support for this in MariaDB JDBC connector as well? It could be useful if the distance (ping) between client and server is high. The performance gain for (1.) is very high. Although to be fair, a workaround is to use LOAD DATA INFILE that has equal or greater performance. The performance gain for (2.) is medium, because it looks like (at least for me) that the server will reply with one TCP segment per query. At least the transfer of data to the server is more efficient.
|
| Comments |
| Comment by Andy Shulman [ 2014-09-17 ] |
|
Isn't the first part of this already implemented? I add rewriteBatchedStatements=true as a parameter and I see multiple batched insert statements rewritten. |
| Comment by Lennart Schedin [ 2014-09-18 ] |
|
How it looks in Wireshark when running MariaDB JDBC version 1.1.7 |
| Comment by Lennart Schedin [ 2014-09-18 ] |
|
I don't think there ins any batch rewrite support in version 1.1.7 of MariaDB JDBC. This is how it looks in Wireshark when I run my test case JDBCBatchStatements.testInsert(): |