I am trying to delete the record from the specific date range .
So I have used the below query
delete from `table_name` where `date`<1580947200
I have used datetime as data type for the date
column
It takes long time to execute and sometimes it gets stuck while executing this query.
Can anyone say how to apply index for this query