Add native scheduler which executes SQL queries (similar to InfluxDB tasks). #1170
Replies: 3 comments 5 replies
-
a watch condition would be good (perhaps what you mean by DB event) to trigger the code |
Beta Was this translation helpful? Give feedback.
-
Sounds good - one thing that often gets overlooked though is making ‘metrics’ easily available to show which tasks are being run, how long they take etc. |
Beta Was this translation helpful? Give feedback.
-
Is this something that could be maybe solved also with a view rather than a scheduler? It would be awesome if the view can be materialized and auto-refreshed, but even a regular view might already be good enough for the use case you mention of exposing lower-resolution easier to consume data |
Beta Was this translation helpful? Give feedback.
-
The problem
Usually QuestDB users would have very large time-series table. Often these tables need to be re-sampled in some fashion in order to be easier to read / use. One way to do this is via cron (on Linux) or via other time-based schedulers (Airflow, Luigi, Prefect, etc.). All of the other scheduler would require additional setup on the user end - some much more than others.
Also, some would be slower to run and quite heavy - thus if your job is time sensitive, execution will be slower.
Proposed simple solution
InfluxDB offers Tasks - a native time-based scheduler. I propose that QuestDB adds such a native scheduler for SQL code to run, thus enabling such re-samping from table A to table B to be done (as well as anything else doable via SQL). This will make such a time-based SQL code quick to setup and maintain.
Proposed advanced solution features
I believe many of you will find this extremely useful, so I thought I'd open a discussion on the subject here as well. You can find the original issue here.
If you have proposals on how to improve this idea - please share. 👍
If you like the idea - it's important you give it a thumbs up, so the QDB team can prioritize accordingly. 🥇
Beta Was this translation helpful? Give feedback.
All reactions