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?

mongodb docs expiring data

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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -