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
Question about ttl. #12452
Comments
Hello @hei66, you are right, there is not a single method to get the TTL of existing column families. Looking to the C++ code I can't even see anything here regardes getting existing TTL values. It looks like it is not even stored anywhere in the database, because TTL is implemented via TTL compactions filter. See this code. To know what TTL is used, I suggest to store it somewhere else, or use something default. Radek |
It looks like I was wrong, it is stored in the Options file. For example : |
I have another idea, initialize ttl to 0, and then modify ttl after opening db. I haven't found any way to modify ttl. |
That's possible, but then you risk that some data may be deleted. |
|
No, as specified here Expired TTL values are deleted in compaction only:(Timestamp+ttl<time_now)
I don't think this is possible for existing Column Families, after opening, but it's possible for new Column Families. Checking the code, it should be possible to load Options with @pdillinger @ajkr Do you think we need a new API to keep track of TTL? Maybe the |
I want to dynamically create columnFamily, when all are created, after the application is restarted, when TtlDB.open, I don't know the history of the created columnFamily ttl
The text was updated successfully, but these errors were encountered: