[CONJ-652] faster results buffering socket available data Created: 2018-10-03 Updated: 2019-02-08 Resolved: 2018-10-03 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | performance |
| Affects Version/s: | None |
| Fix Version/s: | 1.8.0, 2.4.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Current implementation buffer socket data. This corresponds to the option "useReadAheadInput" in MySQL connector. benchmarks show huge improvement when having data, and neglectable slow the query without resultset (update / insert). |
| Comments |
| Comment by Diego Dupin [ 2018-10-04 ] | |||||||||||||||||||||||||||
|
A quick benchmark results (average time for execution):
This show a small perf decrease for query without results (<1%) as expected, since driver now call available() on socket without need for those queries. |