ClickHouse/base/mysqlxx
Azat Khuzhin 4f41ebcae3 Add settings (for connections) for MySQL storage engine
Default settings are not very efficient, since they do not even reuse
connections.
And when each query requires connection you can have only ~80 QPS, while
by simply enabling connection reuse (connection_auto_close=false) you
can have ~500 QPS (and by increasing connection_pool_size you can have
better QPS throughput).

So this patch allows to pass through some connection related settings
for the StorageMySQL engine, like:
- connection_pool_size=16
- connection_max_tries=3
- connection_auto_close=true

v2: remove connection_pool_default_size
v3: remove num_tries_on_connection_loss
2021-05-20 22:44:52 +03:00
..
tests Build fixes 2021-03-16 14:07:53 +03:00
CMakeLists.txt Maybe better support for paths with whitespaces 2021-04-24 22:47:52 +03:00
Connection.cpp Added "opt_reconnect" parameter to config for controlling MYSQL_OPT_RECONNECT option (#19998) 2021-02-26 09:49:49 +03:00
Connection.h Added "opt_reconnect" parameter to config for controlling MYSQL_OPT_RECONNECT option (#19998) 2021-02-26 09:49:49 +03:00
Exception.cpp Enable extra warnings for base, utils, programs 2020-05-10 01:59:34 +03:00
Exception.h MySQL dictionary source: A mechanism for retrying unexpected connection loss during communication with mysql server (#21237) 2021-02-27 11:18:28 +03:00
mysqlxx.h Fix typos, the last 1% 2020-08-08 04:21:04 +03:00
Null.h Enable extra warnings for base, utils, programs 2020-05-10 01:59:34 +03:00
Pool.cpp Fix use after free in mysqlxx::Pool::tryGet() 2021-03-04 16:51:27 +01:00
Pool.h fix prewhere in materialize mysql 2021-04-16 18:51:27 +03:00
PoolFactory.cpp Clang Tidy, part 7 (#9799) 2020-03-23 05:12:31 +03:00
PoolFactory.h Clang Tidy, part 7 (#9799) 2020-03-23 05:12:31 +03:00
PoolWithFailover.cpp Add settings (for connections) for MySQL storage engine 2021-05-20 22:44:52 +03:00
PoolWithFailover.h Add settings (for connections) for MySQL storage engine 2021-05-20 22:44:52 +03:00
Query.cpp MySQL dictionary source: A mechanism for retrying unexpected connection loss during communication with mysql server (#21237) 2021-02-27 11:18:28 +03:00
Query.h Fix some of the issues found by Coverity 2021-02-02 22:07:23 +03:00
ResultBase.cpp ISSUES-16835 try fix review comment 2020-12-09 16:19:09 +08:00
ResultBase.h Fix some of the issues found by Coverity 2021-02-02 22:07:23 +03:00
Row.cpp ISSUES-16835 try fix review comment 2020-12-09 16:19:09 +08:00
Row.h Fix some of the issues found by Coverity 2021-02-02 22:07:23 +03:00
Transaction.h Move FastMemcpy to contribs (#9219) 2020-03-13 01:26:16 +03:00
Types.h Move FastMemcpy to contribs (#9219) 2020-03-13 01:26:16 +03:00
UseQueryResult.cpp Move FastMemcpy to contribs (#9219) 2020-03-13 01:26:16 +03:00
UseQueryResult.h Fix some of the issues found by Coverity 2021-02-02 22:07:23 +03:00
Value.cpp Clang Tidy, part 7 (#9799) 2020-03-23 05:12:31 +03:00
Value.h Fix some of the issues found by Coverity 2021-02-02 22:07:23 +03:00