M
M
maqstein2019-07-21 20:47:46
PostgreSQL
maqstein, 2019-07-21 20:47:46

How to perform an action after the time has elapsed? Won't cron be too expensive?

there is a table (message, date) with a message that needs to be sent at a specific time. The problem is that the accuracy should preferably be very high, and the table is not small. are there any more concise solutions than cron

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2019-07-21
@maqstein

not small - the concept is very relative. if the selection of the desired dates really takes a lot of time, you can do the aggregation, for example, for the next day/week/several hours.
or get confused by the scheduler in the database itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question