Conversation
|
Workflow [PR], commit [45ca395] Summary: ❌
|
|
Does this introduce either a wait, or non-immediate read-my-writes behavior, for small inserts? If so, is the workaround to explicitly set |
Yes it does introduce a wait. You could tune timeouts to speed up or/and set adaptive timeouts.
No, by default
You could turn it off with settings in the config file or with setting in the query. |
d216a5b to
6793064
Compare
5b2ed1c to
3af3da5
Compare
|
|
||
| LOG_TRACE(log, "Have {} pending inserts in shard {} with total {} bytes of data for query '{}'", | ||
| data->entries.size(), size_t(shard_num), data->size_in_bytes, key.query_str); | ||
| LOG_TRACE(log, "Have {} pending inserts in shard {} with total {} bytes of data for the async insert queries '{}'", |
There was a problem hiding this comment.
key.query_str might contain sensitive info.
we do not need that in the loogs.
What we do need is the query ids of async insert in that batch
| table->getInMemoryMetadataPtr(), | ||
| query_context, | ||
| /* no_destination */false, | ||
| insert_context->getSettingsRef()[Setting::insert_allow_materialized_columns]); |
There was a problem hiding this comment.
Found that sync inserts take into account insert_allow_materialized_columns from context, but async insert took here just false
Cherry pick #97590 to 26.2: turn on async insert
Backport #97590 to 26.2: turn on async insert
|
It broke our CI and blocked hundreds of other pull requests: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=98660&sha=ab0f4a79a00958604510c4a5067d4cc703a2b9f6&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29 If you think the judgment of our CI is wrong, fix the CI first. |
|
Restored with more care to the upgrade check |
With #97562
async and sync inserts use transparent tokens, no reason not to use async inserts.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
turn on async insert by default. Clickhouse will be batching all small inserts by default now. This setting is set under compatibility. If you set
compatibility=<version less than 26.2>then default value would be the previous one,false. You could turn off/on async inserts on the several levels: in the config in users profiles, for the session, for the query, or for the mergetree table.Documentation entry for user-facing changes