Is there a TTL for MySQL as there is in MongoDB? -
in mongodb there expireafterseconds index deletes object automatically after amount of time. wondering if there such thing in mysql?
no, need delete
data when it's expired.
you can implement similar adding datetime field , run scheduled task in operating system (a cronjob on unix-like systems).
you can schedule directly in mysql:
Comments
Post a Comment