-
Notifications
You must be signed in to change notification settings - Fork 456
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
sql: introduce crdb_internal.transaction_contention_events virtual table #13138
Comments
Stephanie Bodoff (stbof) commented: Also, the description for some of the columns in this table say: This column can be joined into |
Kevin Ngo (kevin-v-ngo) commented: And i think we’d want to join with {{cluster_contention_events}} since this is already a cluster wide view. Here’s also a few examples Archer put together for our docs (thanks Archer!): {noformat}- raw data SELECT {noformat}-- removing in-progress txns and simple aggregation SELECT {noformat}-- showing blocking statement {noformat}-- showing blocking statement and waiting statements |
Exalate commented:
cockroachdb/cockroach#76917 --- Release note (sql change): introducing
crdb_internal.transaction_contention_events
virtual table, that exposes historical transaction contention events. The events exposed in the new virtual table also include transaction fingerprint IDs for both blocking and waiting transactions. This allows the new virtual table to be joined into statement statistics and transaction statistics tables. The new virtual table require either VIEWACTIVITYREDACTED OR VIEWACTIVITY role option to access. However, if user has VIEWACTIVTYREDACTED role, the contending key will be redacted. The contention events are stored in memory. The amount of contention events stored is controlled via 'sql.contention.event_store.capacity' cluster setting. Release note (api change): introducing GET/_status/transactioncontentionevents
endpoint, that returns cluster-wide in-memory historical transaction contention events. The endpoint require either VIEWACTIVITYREDACTED OR VIEWACTIVITY role option to access. However, if user has VIEWACTIVTYREDACTED role, the contending key will be redacted. The contention events are stored in memory. The amount of contention events stored is controlled via 'sql.contention.event_store.capacity' cluster setting. Release Justification: Low risk, high benefit changeJira Issue: DOC-2780
Jira Issue: DOC-4354
The text was updated successfully, but these errors were encountered: