Skip to content

Fix slow performance when querying system tables - #95874

Merged
pufit merged 5 commits into
masterfrom
pufit/fix-check-access-perfomance
Feb 17, 2026
Merged

pufit merged 5 commits into
masterfrom
pufit/fix-check-access-perfomance

Conversation

@pufit

@pufit pufit commented Feb 3, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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

Fix slow performance when querying system tables with a user that has limited grants on many databases.
Closes #89371

Version info

  • Merged into: 26.2.1.853

@clickhouse-gh

clickhouse-gh Bot commented Feb 3, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1ab4701]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_asan, targeted) failure
test_ttl_replicated/test.py::test_ttl_compatibility[node_left1-node_right1-1-1-10] FAIL cidb IGNORED
test_ttl_replicated/test.py::test_ttl_compatibility[node_left2-node_right2-2-2-10] FAIL cidb IGNORED
Integration tests (amd_asan, db disk, old analyzer, 5/6) failure
test_acme_tls/test_multi_node.py::test_coordinated_acme_authorization FAIL cidb, issue ISSUE EXISTS
test_acme_tls/test_single_node.py::test_acme_authorization FAIL cidb IGNORED
Integration tests (amd_binary, 5/5) failure
test_acme_tls/test_multi_node.py::test_coordinated_acme_authorization FAIL cidb, issue ISSUE EXISTS
test_acme_tls/test_single_node.py::test_acme_authorization FAIL cidb IGNORED
Integration tests (arm_binary, distributed plan, 1/4) failure
test_acme_tls/test_single_node.py::test_acme_authorization FAIL cidb IGNORED
test_acme_tls/test_multi_node.py::test_coordinated_acme_authorization FAIL cidb, issue ISSUE EXISTS
Integration tests (amd_tsan, 5/6) failure
test_acme_tls/test_multi_node.py::test_coordinated_acme_authorization FAIL cidb, issue ISSUE EXISTS
test_acme_tls/test_single_node.py::test_acme_authorization FAIL cidb IGNORED
Stress test (amd_debug) failure
Segmentation fault (STID: None) FAIL cidb IGNORED
Performance Comparison (amd_release, master_head, 2/6) failure
Check Results failure IGNORED

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Feb 3, 2026
@antaljanosbenjamin antaljanosbenjamin self-assigned this Feb 3, 2026

@antaljanosbenjamin antaljanosbenjamin left a comment

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.

I think the changes are clear (basically skipping calculating the necessary grants), but the changelog entry is not user readable. First I thought throw_if_denied is a setting. Please rephrase that to a user readable one.

Also, the test fails.

@vitlibar

vitlibar commented Feb 5, 2026

Copy link
Copy Markdown
Member

@pufit Can you please check your fix on my performance test #89454?

@pufit

pufit commented Feb 6, 2026

Copy link
Copy Markdown
Member Author

@vitlibar

2026-02-06 07:05:14 +SELECT FROM system.databases took 67 milliseconds for user default
2026-02-06 07:05:14 +SELECT FROM system.databases took 77 milliseconds for user u1

looks good

@pufit pufit changed the title Fix check access performance with throw_if_denied=false Fix slow performance when querying system tables Feb 6, 2026
@pufit
pufit added this pull request to the merge queue Feb 17, 2026
Merged via the queue into master with commit 6ab8175 Feb 17, 2026
244 of 260 checks passed
@pufit
pufit deleted the pufit/fix-check-access-perfomance branch February 17, 2026 16:50
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Querying system.databases and Tables is Slow for Users with Limited Permission

4 participants