Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
pingcap
docs
Repository navigation
Code
Issues
175
(175)
Pull requests
185
(185)
Actions
Projects
Security and quality
Insights
More
items
statistics: document sampling-based NDV collection and batched ANALYZE requests
- #24667
#24667
Open
0xPoe
wants to merge 12 commits into
pingcap:master
pingcap/docs:master
from
0xPoe:docs-sampled-ndv
0xPoe/docs:docs-sampled-ndv
Copy head branch name to clipboard
Conversation
Commits
12
(12)
Checks
Files changed
Open
statistics: document sampling-based NDV collection and batched ANALYZE requests
#24667
0xPoe
wants to merge 12 commits into
pingcap:master
pingcap/docs:master
from
0xPoe:docs-sampled-ndv
0xPoe/docs:docs-sampled-ndv
Copy head branch name to clipboard
Commits
Commits on Nov 9, 2026
sql-statements: show WITH DEFAULT options in ANALYZE synopsis
Show description for 7289f56
0xPoe
committed
7289f56
View commit details
Copy full SHA for 7289f56
Browse repository at this point
statistics: document tidb_analyze_store_batch_size
Show description for a321f46
0xPoe
committed
a321f46
View commit details
Copy full SHA for a321f46
Browse repository at this point
statistics: document sampling-based NDV collection
Show description for b5208c0
0xPoe
committed
b5208c0
View commit details
Copy full SHA for b5208c0
Browse repository at this point
Commits on Nov 11, 2026
statistics: state when ANALYZE uses the PD row count
Show description for ea78a49
0xPoe
committed
ea78a49
View commit details
Copy full SHA for ea78a49
Browse repository at this point
statistics: simplify the NDV rate rule
Show description for b107c2f
0xPoe
committed
b107c2f
View commit details
Copy full SHA for b107c2f
Browse repository at this point
statistics: list all keys that give an exact NDV
Show description for 6a2e3b4
0xPoe
committed
6a2e3b4
View commit details
Copy full SHA for 6a2e3b4
Browse repository at this point
statistics: remove internal details from the sampled NDV docs
Show description for e776e48
0xPoe
committed
e776e48
View commit details
Copy full SHA for e776e48
Browse repository at this point
statistics: shorten the tidb_analyze_store_batch_size description
Show description for 4020586
0xPoe
committed
4020586
View commit details
Copy full SHA for 4020586
Browse repository at this point
statistics: correct the NDV sample size for large tables
Show description for fc82bab
0xPoe
committed
fc82bab
View commit details
Copy full SHA for fc82bab
Browse repository at this point
statistics: correct the note on WITH options in automatic update
Show description for 94c7ec5
0xPoe
committed
94c7ec5
View commit details
Copy full SHA for 94c7ec5
Browse repository at this point
statistics: say when TiDB calculates the NDV rate again
Show description for a13d83e
0xPoe
committed
a13d83e
View commit details
Copy full SHA for a13d83e
Browse repository at this point
statistics: give the default NDV rate behavior first
Show description for 54c58aa
0xPoe
committed
54c58aa
View commit details
Copy full SHA for 54c58aa
Browse repository at this point
You can’t perform that action at this time.