pingcap / tidb

TiDB - the open-source, cloud-native, distributed SQL database designed for modern applications.
https://pingcap.com
Apache License 2.0
37.34k stars 5.85k forks source link

statsitstics: avoid sync load column which is skiped type to analyze (#57144) #57617

Open ti-chi-bot opened 9 hours ago

ti-chi-bot commented 9 hours ago

This is an automated cherry-pick of #57144

What problem does this PR solve?

Issue Number: close #57138

Problem Summary:

What changed and how does it work?

Sometimes, we disable the analysis of certain columns using analyze_skip_column. However, these columns may still retain outdated statistics, especially after being modified. Since their statistics are larger, syncing them via sync load can be very slow and prone to timeouts. To address this, we filter out these columns.

image

Check List

Tests

Side effects

Documentation

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

statsitstics: avoid sync load column which is skiped to analyze

避免将 skip analyze 的列通过 sync load 加载
ti-chi-bot[bot] commented 9 hours ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign fixdb for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[pkg/statistics/OWNERS](https://github.com/pingcap/tidb/blob/release-7.5/pkg/statistics/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
ti-chi-bot[bot] commented 9 hours ago

@ti-chi-bot: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
idc-jenkins-ci-tidb/unit-test bc7ffdcbfce30c4cf5591ea55951ebd23cfc1333 link true /test unit-test
idc-jenkins-ci-tidb/build bc7ffdcbfce30c4cf5591ea55951ebd23cfc1333 link true /test build
idc-jenkins-ci-tidb/check_dev_2 bc7ffdcbfce30c4cf5591ea55951ebd23cfc1333 link true /test check-dev2
idc-jenkins-ci-tidb/check_dev bc7ffdcbfce30c4cf5591ea55951ebd23cfc1333 link true /test check-dev
idc-jenkins-ci-tidb/mysql-test bc7ffdcbfce30c4cf5591ea55951ebd23cfc1333 link true /test mysql-test

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).