Skip to content

Commit

Permalink
update tikv-server-config file with bottommost-level-compression (pin…
Browse files Browse the repository at this point in the history
…gcap#4480)

* update tikv-server-config file with bottommost-level-compression

* Update tikv-configuration-file.md

* Update tikv-configuration-file.md

* Apply suggestions from code review

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update tikv-configuration-file.md

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
Joyinqin and TomShawn authored Dec 24, 2020
1 parent 94ad2b8 commit 5910392
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data-type-numeric.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TiDB supports all the MySQL numeric types, including:

## Integer types

TiDB supports all the MySQL integer types, including `INTEGER`/`INT`, `TINYINT`, `SMALLINT`, `MEDIUMINT`, and `BIGINT`. For more information, see [Numeric Data Type Syntax in MySQL](https://dev.mysql.com/doc/refman/5.7/en/numeric-type-syntax.html).
TiDB supports all the MySQL integer types, including `INTEGER`/`INT`, `TINYINT`, `SMALLINT`, `MEDIUMINT`, and `BIGINT`. For more information, see [Integer Data Type Syntax in MySQL](https://dev.mysql.com/doc/refman/5.7/en/integer-types.html).

The following table summarizes field descriptions:

Expand Down
7 changes: 7 additions & 0 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,13 @@ Configuration items related to `rocksdb.defaultcf`
+ Optional values: ["no", "no", "lz4", "lz4", "lz4", "zstd", "zstd"]
+ Default value: `No` for the first two levels, and `lz4` for the next five levels

### `bottommost-level-compression`

+ Sets the compression algorithm of the bottommost layer. This configuration item overrides the `compression-per-level` setting.
+ Ever since data is written to LSM-tree, RocksDB does not directly adopt the last compression algorithm specified in the `compression-per-level` array for the bottommost layer. `bottommost-level-compression` enables the bottommost layer to use the compression algorithm of the best compression effect from the beginning.
+ If you do not want to set the compression algorithm for the bottommost layer, set the value of this configuration item to `disable`.
+ Default value: "zstd"

### `write-buffer-size`

+ Memtable size
Expand Down

0 comments on commit 5910392

Please sign in to comment.