Skip to content

Commit

Permalink
reference/configuration: add tidb_row_format_version (#2290)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn authored Apr 16, 2020
1 parent 77fa1fb commit b1e6a42
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,14 @@ Usage of statements:
- `CREATE TABLE`: `CREATE TABLE t (c int) SHARD_ROW_ID_BITS = 4;`
- `ALTER TABLE`: `ALTER TABLE t SHARD_ROW_ID_BITS = 4;`

### tidb_row_format_version

- Scope: GLOBAL
- Default value: `2`
- Controls the format version of the newly saved data in the table. In TiDB v4.0, the [new storage row format](https://github.com/pingcap/tidb/blob/master/docs/design/2018-07-19-row-format.md) version `2` is used by default to save new data.
- If you upgrade from a TiDB version earlier than 4.0.0 to 4.0.0, the format version is not changed, and TiDB continues to use the old format of version `1` to write data to the table, which means that **only newly created clusters use the new data format by default**.
- Note that modifying this variable does not affect the old data that has been saved, but applies the corresponding version format only to the newly written data after modifying this variable.

## tidb_slow_log_threshold

- Scope: SESSION
Expand Down

0 comments on commit b1e6a42

Please sign in to comment.