Open
Conversation
✅ Deploy Preview for cockroachdb-api-docs canceled.
|
✅ Deploy Preview for cockroachdb-interactivetutorials-docs canceled.
|
38dbdab to
f0b9359
Compare
❌ Deploy Preview for cockroachdb-docs failed. Why did it fail? →
|
✅ Netlify Preview
To edit notification comments on pull requests, go to your Netlify project configuration. |
8cf6c99 to
c477e0e
Compare
rytaft
reviewed
Jan 14, 2026
Contributor
rytaft
left a comment
There was a problem hiding this comment.
Looks great! Thanks for all this work! Just a few comments.
| CREATE INDEX ON rides (start_time); | ||
| ~~~ | ||
|
|
||
| Partial statistics are particularly valuable for timestamp columns where workloads commonly access the most recent data: |
Contributor
There was a problem hiding this comment.
With the WHERE clause, you can specify arbitrary predicates, so the "recency" argument isn't needed here (unlike for USING EXTREMES). Any range of values that was recently updated (even in the middle of the index) can have partial stats collected here.
2fbb646 to
6ece21c
Compare
Contributor
Author
|
@rytaft TFTR and sorry I took a while to get back to this! I revised per your feedback; could you please have another look? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DOC-14809
DOC-11635
DOC-10969
DOC-10915
DOC-12760
Improve our partial statistics docs as follows:
CREATE STATISTICSpageThese updates apply to 23.2-26.1, according to the following feature timeline (please call out if incorrect):
enable_create_stats_using_extremes= off (session)USING EXTREMESenabled by defaultenable_create_stats_using_extremes= on (session);optimizer_use_merged_partial_statistics= off (session)sql.stats.automatic_partial_collection.enabled= true;sql.stats.automatic_partial_collection.min_stale_rows= 100;sql.stats.automatic_partial_collection.fraction_stale_rows= 0.05; table-level equivalentsoptimizer_use_merged_partial_statistics= on;sql.stats.automatic_partial_collection.enabled= true;sql.stats.automatic_full_collection.enabled= true; table-level equivalentsWHERE)WHEREDocs to review (v26.1; please use the version dropdown menu to change versions):
CREATE STATISTICS