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

Make OPTIMIZE be able to merge all parts with FINAL. #2599

Merged
merged 1 commit into from
Jul 5, 2018

Conversation

amosbird
Copy link
Collaborator

@amosbird amosbird commented Jul 5, 2018

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

@alexey-milovidov alexey-milovidov merged commit 78beacb into ClickHouse:master Jul 5, 2018
@alexey-milovidov
Copy link
Member

You have implemented it only for MergeTree, not for Replicated variants.

alexey-milovidov added a commit that referenced this pull request Jul 5, 2018
alexey-milovidov added a commit that referenced this pull request Jul 5, 2018
@amosbird
Copy link
Collaborator Author

amosbird commented Jul 5, 2018

Ah, is it straghtforward to apply the merge loop for Replicated variants?

@alexey-milovidov
Copy link
Member

alexey-milovidov commented Jul 5, 2018

It should work in about the same way.

There are some considerations in usability. When you execute an OPTIMIZE query it will create many merges in the replication queue and merges of new parts won't be created for a long period of time. If you have inserts in your table, they will end up refused with the message "Too many parts..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants