async_load_databases
Asynchronous loading of databases and tables.- If
trueall non-system databases withOrdinary,AtomicandReplicatedengine will be loaded asynchronously after the ClickHouse server start up. Seesystem.asynchronous_loadertable,tables_loader_background_pool_sizeandtables_loader_foreground_pool_sizeserver settings. Any query that tries to access a table, that is not yet loaded, will wait for exactly this table to be started up. If load job fails, query will rethrow an error (instead of shutting down the whole server in case ofasync_load_databases = false). The table that is waited for by at least one query will be loaded with higher priority. DDL queries on a database will wait for exactly that database to be started up. Also consider setting a limitmax_waiting_queriesfor the total number of waiting queries. - If
false, all databases are loaded when the server starts.
async_load_system_database
Asynchronous loading of system tables. Helpful if there is a high amount of log tables and parts in thesystem database. Independent of the async_load_databases setting.
- If set to
true, all system databases withOrdinary,Atomic, andReplicatedengines will be loaded asynchronously after the ClickHouse server starts. Seesystem.asynchronous_loadertable,tables_loader_background_pool_sizeandtables_loader_foreground_pool_sizeserver settings. Any query that tries to access a system table, that is not yet loaded, will wait for exactly this table to be started up. The table that is waited for by at least one query will be loaded with higher priority. Also consider setting themax_waiting_queriessetting to limit the total number of waiting queries. - If set to
false, system database loads before server start.