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

Question: Does tidb or tikv support TTL? #6218

Closed
didip opened this issue Apr 3, 2018 · 4 comments
Closed

Question: Does tidb or tikv support TTL? #6218

didip opened this issue Apr 3, 2018 · 4 comments

Comments

@didip
Copy link

didip commented Apr 3, 2018

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.

I am currently evaluating both to store large volume of data that is time series in nature. Thus, they don't need to live forever.

  1. What did you expect to see?

I am aware that MySQL does not have support for row-level TTL, however I am curious if tidb has plan to implement TTL in the future.

  1. What did you see instead?

I couldn't find any reference of TTL in the docs, which makes sense because MySQL does not support TTL.

  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

I haven't gotten that far yet, I am just reading the docs at the moment.

@coocood
Copy link
Member

coocood commented Apr 4, 2018

@didip
We don't have a plan to support TTL.
You can add a createdAt column in the table and delete the old rows periodically.

@zhexuany
Copy link
Contributor

zhexuany commented Apr 4, 2018

TiDB may not be a good fit since you mentioned that you are evaluating TiDB to store time-series data.

@didip
Copy link
Author

didip commented Apr 4, 2018

OK, thanks for the quick reply guys!

@SunRunAway
Copy link
Contributor

TTL feature is released with TiDB v6.5: https://docs.pingcap.com/tidb/stable/time-to-live#periodically-delete-expired-data-using-ttl-time-to-live

tracking issue: #39262

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

No branches or pull requests

4 participants