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 compact all data by SQL #4145

Closed
flowbehappy opened this issue Feb 25, 2022 · 2 comments
Closed

Support compact all data by SQL #4145

flowbehappy opened this issue Feb 25, 2022 · 2 comments
Assignees
Labels
type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@flowbehappy
Copy link
Contributor

flowbehappy commented Feb 25, 2022

Feature Request

There are chances that the data in TiFlash is not very optimized. Like background GC workload failed to catch up cleaning old data after extending nodes. It causes too much outdate data in old TiFlash nodes, which affect query performance. Currently, we need to use tools like ch client to run SQLs to manually compact the data, which is very inconvenient.

Consider providing SQL which can execute directly from TiDB:

alter table T compact tiflash replica; 
@flowbehappy flowbehappy added the type/feature-request Categorizes issue or PR as related to a new feature. label Feb 25, 2022
@flowbehappy flowbehappy self-assigned this Feb 25, 2022
@JaySon-Huang
Copy link
Contributor

JaySon-Huang commented Mar 2, 2022

should take care if T is a partition table, then it will trigger compaction on all partitions

@breezewish
Copy link
Member

Implemented in #4885

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants