Skip to content

Enable adaptive index granularity by default - #5628

Merged
alexey-milovidov merged 24 commits into
masterfrom
index_granularity_by_default
Jul 2, 2019
Merged

alexey-milovidov merged 24 commits into
masterfrom
index_granularity_by_default

Conversation

@alesapin

Copy link
Copy Markdown
Member

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

For changelog. Remove if this is non-significant change.

Category (leave one):

  • Backward Incompatible Change

Short description (up to few sentences):
Enable adaptive_index_granularity=10MB by default. Check old tables for mrk format to detect fixed granularity.

@alesapin alesapin changed the title [WIP] Enable adaptive index granularity by default Enable adaptive index granularity by default Jun 21, 2019
Comment thread dbms/src/Core/Settings.h
@@ -104,12 +104,12 @@ struct Settings : public SettingsCollection<Settings>
M(SettingBool, optimize_skip_unused_shards, false, "Assumes that data is distributed by sharding_key. Optimization to skip unused shards if SELECT query filters by sharding_key.") \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't understant the changes of this file.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made _bytes settings almost equal (slightly greater) to the analogous _rows settings in marks count. Previously _bytes settings were chosen without any logic and performance tests had showed decrease in performance https://clickhouse-test-reports.s3.yandex.net/5628/3f7892ef50252bd473cdc627aade065f34767b46/performance_test/comparison_min_time_gcc_8.html. merge_tree_max_rows_to_use_cache didn't changed, just rewrtite mutliplication in default marks size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants