diff --git a/docs/design/2021-04-26-lock-view.md b/docs/design/2021-04-26-lock-view.md index ebc0037b23de6..e4fcae97e335c 100644 --- a/docs/design/2021-04-26-lock-view.md +++ b/docs/design/2021-04-26-lock-view.md @@ -37,7 +37,7 @@ Several tables will be provided in `information_schema`. Some tables has both lo |------------|------------|---------| | `TRX_ID` | `unsigned bigint` | The transaction ID (aka. start ts) | | `TRX_STARTED`|`time`| Human readable start time of the transaction | -| `CURRENT_SQL_DIGEST`|`text`| The digest of the current executing SQL statement | +| `CURRENT_SQL_DIGEST`|`varchar(64)`| The digest of the current executing SQL statement | | `ALL_SQL_DIGESTS` | `text` | A list of all executed SQL statements' digests | | `STATE`| `enum('Running', 'Lock waiting', 'Committing', 'RollingBack')`| The state of the transaction | | `WAITING_START_TIME` | `time` | The elapsed time since the start of the current lock waiting (if any) | @@ -67,7 +67,7 @@ Several tables will be provided in `information_schema`. Some tables has both lo |------------|------------|---------| | `KEY` | `varchar` | The key that's being waiting on | | `TRX_ID` | `unsigned bigint` | The current transaction that's waiting for the lock | -| `SQL_DIGEST` | `text` | The digest of the SQL that's trying to acquire the lock | +| `SQL_DIGEST` | `varchar(64)` | The digest of the SQL that's trying to acquire the lock | | `CURRENT_HOLDING_TRX_ID` | `unsigned bigint` | The transaction that's holding the lock and blocks the current transaction | * Life span of rows: @@ -108,7 +108,7 @@ Several tables will be provided in `information_schema`. Some tables has both lo | Field | Type | Comment | |------------|------------|---------| -| `DIGEST` | `bigint` | Digest of a transaction, calculated with `ALL_SQL_DIGEST` | +| `DIGEST` | `varchar(64)` | Digest of a transaction, calculated with `ALL_SQL_DIGEST` | | `ALL_SQL_DIGEST` | `text` | A json array which contains all SQLs' digest executed in this kind of transaction | * Life span of rows: @@ -123,7 +123,7 @@ Several tables will be provided in `information_schema`. Some tables has both lo | Field | Type | Comment | |------------|------------|---------| -| `DIGEST` | `bigint` | Digest of a transaction, calculated with `ALL_SQL_DIGEST` | +| `DIGEST` | `varchar(64)` | Digest of a transaction, calculated with `ALL_SQL_DIGEST` | | `TRX_ID` | `bigint` | The transaction ID (aka. start ts) | * Life span of rows: @@ -208,7 +208,7 @@ Value: 0 (do not collect) or 1 (collect) Default: 0 -#### TiDB Config File `pessimistic-txn.transaction-id-digest-capacity` +#### TiDB Config File `transaction-summary.transaction-id-digest-capacity` Specifies how many transaction in `transaction_id_digest` each TiDB node should keep. @@ -218,7 +218,7 @@ Value: 0 to 100000 Default: 10000 -#### TiDB Config File `pessimistic-txn.transaction-id-digest-filter` +#### TiDB Config File `transaction-summary.transaction-id-digest-min-duration` Specifies how long a transaction should be executed to make it be recorded in `transaction_id_digest`. @@ -230,7 +230,7 @@ Unit: ms Default: 1000 -#### TiDB Config File `pessimistic-txn.transaction-summary-capacity` +#### TiDB Config File `transaction-summary.transaction-summary-capacity` Specifies how many transaction summary in `transaction_summary` each TiDB node should keep.