Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
longfangsong committed Oct 19, 2021
1 parent 22b686e commit 87be66e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/design/2021-04-26-lock-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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.

Expand All @@ -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`.

Expand All @@ -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.

Expand Down

0 comments on commit 87be66e

Please sign in to comment.