-
Notifications
You must be signed in to change notification settings - Fork 52
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
Don't list old metric names? #83
Comments
@mzealey : if your Clickhouse support deletion you can try same trick, but with DELETE
But I'm not sure if DELETE WHERE supports GROUP BY ... HAVING clause. |
I imagine sometihng like this would work:
But there are also partial and reversed paths etc as well; do they not need deleting somehow? |
Yep, then SELECT should bit more complex. Reversed is easy, not sure about partial, though. |
It looks related to #64 |
Also I think you want to select the Paths from graphite_index first, then remove the data from the graphite table and then tidy the graphite_index table? Does that make sense? |
Could the 'delete' column features in recent clickhouse versions be leveraged for this? We are using the ALTER TABLE method described above for some time now, while it works as expected it puts significant load on clickhouse so it would be great to have a lightweight alternative. |
https://clickhouse.com/docs/en/sql-reference/statements/delete exists for quite a long. |
Yeah I'd use the lightweight deletes as above. Probably can just change the 'alter table x delete' bit to 'delete from x'. |
Is there a way to filter the metric name list so that I can exclude metrics that have not been inserted in the past few days? I can see in the RU wiki page there is detail about the old index_tree table where you could set
Deleted = 1
but can't seem to find any documentation about how to do this currently?The text was updated successfully, but these errors were encountered: