-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
stats: incremental analyze for index with feedback updates #10355
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10355 +/- ##
===============================================
- Coverage 77.3741% 77.374% -0.0002%
===============================================
Files 412 412
Lines 85588 85636 +48
===============================================
+ Hits 66223 66260 +37
- Misses 14339 14349 +10
- Partials 5026 5027 +1 |
/run-all-tests |
/run-all-tests |
/run-unit-test |
Can we remove the |
@eurekaka That means we need to analyze at least 1/256 rows, we can do it better when there are no feedbacks. |
How does this come from? |
Since we have 256 buckets in a histogram and they are equal depth, so truncate one bucket would lead to analyze at least 1/256 rows. Also, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
What problem does this PR solve?
Support incremental analyze for the index with feedback updates.
What is changed and how it works?
For index with feedback updates, we will analyze from the last analyze position and merges it with the previous stats.
Check List
Tests
Code changes
Side effects
Related changes