Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Query Cache server-level settings reconfigurable at runtime #45758

Merged
merged 6 commits into from
Feb 5, 2023

Conversation

rschu1ze
Copy link
Member

@rschu1ze rschu1ze commented Jan 29, 2023

+ rename setting max_entry_records to max_entry_rows for consistency with other settings.

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

The query cache's server-level settings are now reconfigurable at runtime

@rschu1ze rschu1ze added the do not test disable testing on pull request label Jan 29, 2023
@robot-clickhouse robot-clickhouse added the pr-improvement Pull request with some product improvements label Jan 29, 2023
@rschu1ze rschu1ze force-pushed the qc-max_cache_size branch 2 times, most recently from 016fed6 to 9cb983d Compare January 29, 2023 22:18
@rschu1ze rschu1ze changed the title (wip) Query cache: consider setting "cache_size_to_ram_max_ratio" (wip) Make query cache settings reconfigurable Jan 29, 2023
@rschu1ze rschu1ze changed the title (wip) Make query cache settings reconfigurable (wip) Make server-level query cache settings reconfigurable Jan 30, 2023
@rschu1ze rschu1ze changed the title (wip) Make server-level query cache settings reconfigurable Make query cache server-level settings reconfigurable at runtime Feb 1, 2023
@rschu1ze rschu1ze changed the title Make query cache server-level settings reconfigurable at runtime Make Query Cache server-level settings reconfigurable at runtime Feb 1, 2023
@rschu1ze rschu1ze removed the do not test disable testing on pull request label Feb 1, 2023
@rschu1ze rschu1ze marked this pull request as ready for review February 1, 2023 10:31
@yakov-olkhovskiy

This comment was marked as outdated.

@rschu1ze

This comment was marked as outdated.

Comment on lines 1521 to 1522
global_context->setQueryCache();
global_context->updateQueryCacheConfiguration(config());
Copy link
Member

Choose a reason for hiding this comment

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

don't you think setQueryCache is loosing its meaning here? maybe make it to accept config parameter right away?

Copy link
Member Author

Choose a reason for hiding this comment

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

Semantics are a bit weird, I agree, thanks. Let me make it more pretty.

Copy link
Member

@yakov-olkhovskiy yakov-olkhovskiy left a comment

Choose a reason for hiding this comment

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

overall LGTM, but consider my comment above

@rschu1ze rschu1ze merged commit 4a32882 into master Feb 5, 2023
@rschu1ze rschu1ze deleted the qc-max_cache_size branch February 5, 2023 20:55
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