I have set up MariaDB for the backend database for Ptyhon Django project. As it is in the initial POC stage, I will change the database also if you suggest anything.
There is a table where the user data will be stored for all the entries the users create. And the table contains a data/time field.
I want to trigger email when the date/time field value is equal to current time. Like, if the record1 is having value of tomorrow's 12:31 PM then immediately the email should be triggered to the email ID of the user.
The email sending part we can take care but how to trigger the event when the datetime field value is equal to the current date/time.
One option is to continuously run a background job to check the date/time value but that is not feasible as 1000s of records will be there.
Please suggest, I am a newbie to the Python web projects.