ClickHouse/src/Storages
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
..
Distributed Add BrokenDistributedFilesToInsert new metric 2021-05-04 22:48:07 +03:00
examples move to examples everywhere 2021-04-27 01:51:42 +03:00
HDFS Add final to class 2021-05-17 14:38:48 +00:00
Kafka Add logging about pushing to underlying in StorageKafka 2021-04-14 23:15:31 +03:00
LiveView add metadata_snapshot to getQueryProcessingStage 2021-05-11 18:12:26 +08:00
MergeTree Merge pull request #24296 from amosbird/projection-fix5 2021-05-20 10:50:42 +03:00
MySQL Add settings (for connections) for MySQL storage engine 2021-05-20 22:44:52 +03:00
PostgreSQL Review fixes 2021-05-07 12:05:34 +00:00
RabbitMQ Remove setting 2021-05-16 20:16:10 +00:00
RocksDB Make StorageEmbeddedRocksDB.cpp self compilable (missing ReadBufferFromString.h) 2021-05-06 09:07:59 +03:00
System Auto version update to [21.7.1.1] [54452] 2021-05-20 22:23:34 +03:00
tests Introduce IStorage::flushAndShutdown() 2021-05-16 13:23:53 +03:00
AlterCommands.cpp Projections 2021-05-11 18:12:23 +08:00
AlterCommands.h Projections 2021-05-11 18:12:23 +08:00
CheckResults.h Try speedup build (#14809) 2020-09-15 12:55:57 +03:00
CMakeLists.txt move to examples everywhere 2021-04-27 01:51:42 +03:00
ColumnCodec.h
ColumnDefault.cpp
ColumnDefault.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
ColumnDependency.h Projections 2021-05-11 18:12:23 +08:00
ColumnsDescription.cpp Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
ColumnsDescription.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
CompressionCodecSelector.h Check for #pragma once in headers 2020-10-10 21:37:02 +03:00
ConstraintsDescription.cpp ExpressionActions compile only necessary places 2021-05-19 11:43:16 +03:00
ConstraintsDescription.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
DataDestinationType.h Rename PartDestinationType to DataDestionationType, because there is no part-specific information 2020-05-22 16:29:33 +03:00
extractKeyExpressionList.cpp ANTLR4 Grammar for ClickHouse and new parser (#11298) 2020-12-04 05:15:44 +03:00
extractKeyExpressionList.h Better naming 2020-05-28 16:09:03 +03:00
getStructureOfRemoteTable.cpp Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
getStructureOfRemoteTable.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
IndicesDescription.cpp Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
IndicesDescription.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
IStorage_fwd.h Try speedup build (#14809) 2020-09-15 12:55:57 +03:00
IStorage.cpp Use ActionsDAG to rewrite projection queries 2021-05-11 18:12:27 +08:00
IStorage.h Introduce IStorage::flushAndShutdown() 2021-05-16 13:23:53 +03:00
JoinSettings.cpp Better exceptions rethrow 2020-10-26 06:35:57 +03:00
JoinSettings.h rename persistency to persistent 2020-09-18 20:58:27 +08:00
KeyDescription.cpp Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
KeyDescription.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
MarkCache.h Normalize BigInt implementation 2021-01-27 03:54:57 +03:00
MemorySettings.cpp In memory compression: a prototype 2021-02-11 16:40:15 +03:00
MemorySettings.h Disable in-memory compression by default 2021-02-19 12:02:18 +03:00
MutationCommands.cpp Projections 2021-05-11 18:12:23 +08:00
MutationCommands.h Projections 2021-05-11 18:12:23 +08:00
PartitionCommands.cpp More fixes for PVS-Studio 2021-05-08 19:12:31 +03:00
PartitionCommands.h More fixes for PVS-Studio 2021-05-08 19:12:31 +03:00
ProjectionsDescription.cpp Remove projection type ast 2021-05-11 18:12:29 +08:00
ProjectionsDescription.h Use ActionsDAG to rewrite projection queries 2021-05-11 18:12:27 +08:00
ReadInOrderOptimizer.cpp Fix read in order optimization of COLLATE is present #22379 2021-04-20 21:20:45 +03:00
ReadInOrderOptimizer.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
registerStorages.cpp Make common class for external storages 2021-03-27 17:12:47 +00:00
registerStorages.h Make code slightly better 2020-11-11 09:08:53 +08:00
SelectQueryDescription.cpp Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
SelectQueryDescription.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
SelectQueryInfo.h Merge pull request #23906 from azat/fix-distributed_group_by_no_merge 2021-05-19 16:16:08 +03:00
SetSettings.cpp Better exceptions rethrow 2020-10-26 06:35:57 +03:00
SetSettings.h Use IDisk in Set and Join storages 2020-12-16 14:58:44 +03:00
StorageBuffer.cpp Destroy Buffer() tables before others (within one database) 2021-05-16 13:23:53 +03:00
StorageBuffer.h Destroy Buffer() tables before others (within one database) 2021-05-16 13:23:53 +03:00
StorageDictionary.cpp fix conflict 2021-05-02 16:33:45 +00:00
StorageDictionary.h fix conflict 2021-05-02 16:33:45 +00:00
StorageDistributed.cpp Merge pull request #23906 from azat/fix-distributed_group_by_no_merge 2021-05-19 16:16:08 +03:00
StorageDistributed.h fix 2021-05-13 02:05:53 +00:00
StorageExternalDistributed.cpp Add settings (for connections) for MySQL storage engine 2021-05-20 22:44:52 +03:00
StorageExternalDistributed.h fix conflict 2021-05-02 16:33:45 +00:00
StorageFactory.cpp Whitespace 2021-05-15 10:56:46 +03:00
StorageFactory.h fix 2021-05-13 02:05:53 +00:00
StorageFile.cpp Implement table comments 2021-04-23 12:18:23 +00:00
StorageFile.h Implement table comments 2021-04-23 12:18:23 +00:00
StorageGenerateRandom.cpp fix test and conflict 2021-05-11 16:22:24 +00:00
StorageGenerateRandom.h Implement table comments 2021-04-23 12:18:23 +00:00
StorageInMemoryMetadata.cpp fix 2021-05-13 02:05:53 +00:00
StorageInMemoryMetadata.h fix 2021-05-13 02:05:53 +00:00
StorageInput.cpp Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
StorageInput.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
StorageJoin.cpp fix test and conflict 2021-05-11 16:22:24 +00:00
StorageJoin.h Implement table comments 2021-04-23 12:18:23 +00:00
StorageLog.cpp Implement table comments 2021-04-23 12:18:23 +00:00
StorageLog.h Implement table comments 2021-04-23 12:18:23 +00:00
StorageLogSettings.cpp
StorageLogSettings.h Try speedup build (#14809) 2020-09-15 12:55:57 +03:00
StorageMaterializedView.cpp fix rename matview 2021-05-19 21:53:31 +03:00
StorageMaterializedView.h add metadata_snapshot to getQueryProcessingStage 2021-05-11 18:12:26 +08:00
StorageMaterializeMySQL.cpp Update src/Storages/StorageMaterializeMySQL.cpp 2021-04-20 15:38:02 +03:00
StorageMaterializeMySQL.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
StorageMemory.cpp Merge pull request #24275 from ucasFL/fix-mutation 2021-05-20 10:09:48 +03:00
StorageMemory.h Implement table comments 2021-04-23 12:18:23 +00:00
StorageMerge.cpp Updated ExpressionActionSettings 2021-05-19 17:32:07 +03:00
StorageMerge.h fix 2021-05-13 02:05:53 +00:00
StorageMergeTree.cpp Merge pull request #23997 from ClickHouse/fix_intersecting_parts 2021-05-17 10:46:58 +03:00
StorageMergeTree.h Projections 2021-05-11 18:12:23 +08:00
StorageMongoDB.cpp Implement table comments 2021-04-23 12:18:23 +00:00
StorageMongoDB.h Implement table comments 2021-04-23 12:18:23 +00:00
StorageMySQL.cpp Add settings (for connections) for MySQL storage engine 2021-05-20 22:44:52 +03:00
StorageMySQL.h Add settings (for connections) for MySQL storage engine 2021-05-20 22:44:52 +03:00
StorageNull.cpp fix conflict 2021-05-02 16:33:45 +00:00
StorageNull.h Implement table comments 2021-04-23 12:18:23 +00:00
StoragePostgreSQL.cpp fix test and conflict 2021-05-11 16:22:24 +00:00
StoragePostgreSQL.h fix test and conflict 2021-05-11 16:22:24 +00:00
StorageProxy.h Destroy Buffer() tables before others (within one database) 2021-05-16 13:23:53 +03:00
StorageReplicatedMergeTree.cpp Merge pull request #24162 from amosbird/projection-fix2 2021-05-19 18:07:52 +03:00
StorageReplicatedMergeTree.h Merge branch 'master' into fix_intersecting_parts 2021-05-14 13:17:02 +03:00
StorageS3.cpp fix test and conflict 2021-05-11 16:22:24 +00:00
StorageS3.h fix conflict 2021-04-23 12:22:51 +00:00
StorageS3Cluster.cpp fix 2021-05-13 02:05:53 +00:00
StorageS3Cluster.h fix 2021-05-13 02:05:53 +00:00
StorageS3Settings.cpp Added region parameter for S3 storage and disk. 2021-05-01 20:45:35 +03:00
StorageS3Settings.h Added region parameter for S3 storage and disk. 2021-05-01 20:45:35 +03:00
StorageSet.cpp Implement table comments 2021-04-23 12:18:23 +00:00
StorageSet.h Implement table comments 2021-04-23 12:18:23 +00:00
StorageStripeLog.cpp Implement table comments 2021-04-23 12:18:23 +00:00
StorageStripeLog.h Implement table comments 2021-04-23 12:18:23 +00:00
StorageTableFunction.h Fixed tests 2021-05-19 20:57:07 +03:00
StorageTinyLog.cpp Implement table comments 2021-04-23 12:18:23 +00:00
StorageTinyLog.h Implement table comments 2021-04-23 12:18:23 +00:00
StorageURL.cpp fix test and conflict 2021-05-11 16:22:24 +00:00
StorageURL.h fix conflict 2021-05-02 16:33:45 +00:00
StorageValues.cpp Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
StorageValues.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
StorageView.cpp Implement table comments 2021-04-23 12:18:23 +00:00
StorageView.h Implement table comments 2021-04-23 12:18:23 +00:00
StorageXDBC.cpp Implement table comments 2021-04-23 12:18:23 +00:00
StorageXDBC.h Implement table comments 2021-04-23 12:18:23 +00:00
TableLockHolder.h Better comments 2020-06-22 12:49:21 +03:00
transformQueryForExternalDatabase.cpp Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
transformQueryForExternalDatabase.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
TTLDescription.cpp Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
TTLDescription.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
TTLMode.h Add recompression TTL parser 2020-08-31 14:35:53 +03:00
VirtualColumnUtils.cpp ExpressionActions compile only necessary places 2021-05-19 11:43:16 +03:00
VirtualColumnUtils.h Replace all Context references with std::weak_ptr (#22297) 2021-04-11 02:33:54 +03:00
ya.make Add settings (for connections) for MySQL storage engine 2021-05-20 22:44:52 +03:00
ya.make.in Add examples folder filter to ya.make.in 2021-04-30 11:25:52 +03:00