-
Notifications
You must be signed in to change notification settings - Fork 470
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
DOC-12277 Add contention examples using crdb_internal.transaction_contention_events #19377
Open
florence-crl
wants to merge
14
commits into
main
Choose a base branch
from
DOC-12277
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+606
−9
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f78b690
Draft - Added monitor-and-analyze-contention.md with images.
florence-crl af956b3
Merge remote-tracking branch 'origin/main' into DOC-12277
florence-crl 6db1672
fixed links
florence-crl 786c833
Draft - Added monitor-and-analyze-transaction-contention.md up to Con…
florence-crl fa6a527
Merge remote-tracking branch 'origin/main' into DOC-12277
florence-crl f1ed6c9
Draft - Added monitor-and-analyze-transaction-contention.md up to Ana…
florence-crl a4339c8
Merge remote-tracking branch 'origin/main' into DOC-12277
florence-crl 46480bb
fix links
florence-crl 3199fed
fix links
florence-crl 22ac238
Merge remote-tracking branch 'origin/main' into DOC-12277
florence-crl e5c73a6
Draft - Added monitor-and-analyze-transaction-contention.md up to Ana…
florence-crl 4c65490
fix link.
florence-crl efca702
Merge remote-tracking branch 'origin/main' into DOC-12277
florence-crl 6a95b07
Added monitor-and-analyze-transaction-contention.md up to Analyze usi…
florence-crl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
17 changes: 17 additions & 0 deletions
17
src/current/_includes/v25.1/transaction-contention-events-columns.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Column | Type | Description | ||
-------|------|------------ | ||
`collection_ts` | `TIMESTAMPTZ NOT NULL` | The timestamp when the transaction [contention]({% link {{ page.version.version }}/performance-best-practices-overview.md %}#transaction-contention) event was collected. | ||
`blocking_txn_id` | `UUID NOT NULL` | The ID of the blocking transaction. You can join this column into the [`cluster_contention_events`]({% link {{ page.version.version }}/crdb-internal.md %}#cluster_contention_events) table. | ||
`blocking_txn_fingerprint_id` | `BYTES NOT NULL`| The ID of the blocking transaction fingerprint. To surface historical information about the transactions that caused the [contention]({% link {{ page.version.version }}/performance-best-practices-overview.md %}#transaction-contention), you can join this column into the [`statement_statistics`]({% link {{ page.version.version }}/crdb-internal.md %}#statement_statistics) and [`transaction_statistics`]({% link {{ page.version.version }}/crdb-internal.md %}#transaction_statistics) tables to surface historical information about the transactions that caused the contention. | ||
`waiting_txn_id` | `UUID NOT NULL` | The ID of the waiting transaction. You can join this column into the [`cluster_contention_events`]({% link {{ page.version.version }}/crdb-internal.md %}#cluster_contention_events) table. | ||
`waiting_txn_fingerprint_id` | `BYTES NOT NULL` | The ID of the waiting transaction fingerprint. To surface historical information about the transactions that caused the [contention]({% link {{ page.version.version }}/performance-best-practices-overview.md %}#transaction-contention), you can join this column into the [`statement_statistics`]({% link {{ page.version.version }}/crdb-internal.md %}#statement_statistics) and [`transaction_statistics`]({% link {{ page.version.version }}/crdb-internal.md %}#transaction_statistics) tables. | ||
`waiting_stmt_id` | `STRING NOT NULL` | The statement id of the transaction that was waiting (unique for each statement execution). | ||
`waiting_stmt_fingerprint_id` | `BYTES NOT NULL` | The fingerprint of the statement that was waiting (same for each statement with the same SQL, application name, etc.). | ||
`contention_duration` | `INTERVAL NOT NULL` | The interval of time the waiting transaction spent waiting for the blocking transaction. | ||
`contending_key` | `BYTES NOT NULL` | The key on which the transactions contended. | ||
`contending_pretty_key` | `STRING NOT NULL` | The specific key that was involved in the contention event, in readable format. | ||
`database_name` | `STRING NOT NULL` | The database where the contention occurred. | ||
`schema_name` | `STRING NOT NULL` | The schema where the contention occurred. | ||
`table_name` | `STRING NOT NULL` | The table where the contention occurred. | ||
`index_name` | `STRING NULL` | The index where the contention occurred. | ||
`contention_type` | `STRING NOT NULL` | The type of contention: `LOCK_WAIT` or `SERIALIZATION_CONFLICT`. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
This fingerprint can be joined into the
statement_statistics
table, so maybe similar description to the other fingerprints.