Skip to content
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

sqlstats: include regions in statement_statistics #95089

Closed
wants to merge 1 commit into from
Closed

sqlstats: include regions in statement_statistics #95089

wants to merge 1 commit into from

Conversation

matthewtodd
Copy link
Contributor

Part of #89949.

This completes the work abandoned in #92259, properly storing the regions in which a statement was executed, rather than waiting until UI render time to try to map (dangerously ephemeral) node IDs to their respective regions.

With this work in place, we will be able to remove both the UI mapping code (usages of this selector) and the stop-gap work of #93268.

Release note (sql change): A regions field was added to the statistics column of crdb_internal.statement_statistics, reporting the regions of the nodes on which the statement was executed.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Part of #89949.

This completes the work abandoned in #92259, properly storing the
regions in which a statement was executed, rather than waiting until UI
render time to try to map (dangerously ephemeral) node IDs to their
respective regions.

With this work in place, we will be able to remove both the UI mapping
code (usages of this [selector][]) and the stop-gap work of #93268.

[selector]: https://github.com/cockroachdb/cockroach/blob/0f6333cbd6c78264a59dc435324c0c33d75ea148/pkg/ui/workspaces/cluster-ui/src/store/nodes/nodes.selectors.ts#L52-L64

Release note (sql change): A regions field was added to the statistics
column of crdb_internal.statement_statistics, reporting the regions of
the nodes on which the statement was executed.
@matthewtodd
Copy link
Contributor Author

Talked with Yahor and have a tracing-backed solution figured out. Closing here to republish that separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants