title: Events in MariaDB VS Cron in php - which is better
body: <p>I need an advice. I have a procedure which is calling another procedure in MariaDB. They both are calculating distances and times and put them in a table. I need this calculation to start every night at 23:59:59. The procedure which I should call have two parameters - <em>from_date</em> and <em>to_date</em>. My question is -&gt; which is more appropriate - To make a php Cron which will call my procedure or to make an event in MariaDB? And if you think that the event is a better solution, can you tell me if it is possible to calculate today's datetime in it for <em>date_from</em> and add 24 hours to it to calculate <em>date_to</em>? Thank you in advance !</p>