Skip to content
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

Support Adaptively Decide Compression Algorithm for integers data type #8982

Closed
Lloyd-Pottiger opened this issue Apr 24, 2024 · 0 comments · Fixed by #8903, #9293, #9299, #9312 or #9416
Closed

Support Adaptively Decide Compression Algorithm for integers data type #8982

Lloyd-Pottiger opened this issue Apr 24, 2024 · 0 comments · Fixed by #8903, #9293, #9299, #9312 or #9416
Assignees
Labels
type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@Lloyd-Pottiger
Copy link
Contributor

Feature Request

Is your feature request related to a problem? Please describe:

Currently, TiFlash only supports general compression LZ4, ZSTD, and DeflateQpl (not available in the release version). It is decided by the configuration file, which means all data in the same TiFlash instance will use the same compression algorithm.

By detecting specific patterns, specialized compression algorithms can be significantly more lightweight, providing much faster compression and decompression. In addition, they can be effective on much smaller data sizes. This allows us to decompress a few rows at a time, rather than requiring large blocks of data to be decompressed at once. These specialized compression algorithms can also offer efficient support for random seeks, making data access through an index significantly faster.

Describe the feature you'd like:

Support more lightweight compression algorithms and adaptively decide compression algorithms for each data part in TiFlash.

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

@Lloyd-Pottiger Lloyd-Pottiger added the type/feature-request Categorizes issue or PR as related to a new feature. label Apr 24, 2024
@Lloyd-Pottiger Lloyd-Pottiger self-assigned this Apr 26, 2024
@ti-chi-bot ti-chi-bot bot closed this as completed in #8903 Jul 8, 2024
@ti-chi-bot ti-chi-bot bot closed this as completed in 1ad8a21 Jul 8, 2024
@JaySon-Huang JaySon-Huang changed the title Support Adaptively Decide Compression Algorithm Support Adaptively Decide Compression Algorithm for integers data type Jul 8, 2024
ti-chi-bot bot pushed a commit that referenced this issue Aug 7, 2024
close #8982

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
guo-shaoge pushed a commit to guo-shaoge/tiflash that referenced this issue Aug 7, 2024
close pingcap#8982

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Aug 12, 2024
close #8982

Compression: optimize the CompressionCodecFactory

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Sep 6, 2024
close #8982, close #9336

Compression: Support enabling lightweight compression

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>

Co-authored-by: jinhelin <linjinhe33@gmail.com>
ti-chi-bot bot added a commit that referenced this issue Sep 11, 2024
close #8982

Compression: enable lightweight temporarily

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>

Co-authored-by: JaySon <tshent@qq.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot pushed a commit that referenced this issue Sep 26, 2024
close #8982

Compression: still using LZ4 by default

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment