Topic: Deleting all entries by date
I just want to ask what could be the best approach here.
I have entries to the database called "queue" that is time based. Every now and then I would need to remove old and non-usable entries on my database. I can delete it by calling a function every time the page loads but I'm afraid that it slow down the application.
Where do you think would be the right place to call the code that deletes it? Or is there a proper way to approach this? Thanks in advance.