Open nvanbenschoten opened 2 years ago
@devadvocado this is something for you to think about. I'm throwing it to the backlog.
I think this is an obvious feature. Having materialized views, but having to write a cron job to refresh them every X minutes/hours sounds like a half baked feature.
Has there been any work towards this?
It would be useful to be able to schedule a materialized view refresh every X seconds. The scheduled jobs framework is general enough to support this, but we need a front-end.
This may be a solution for a reasonably sized class of queries where full recomputation time is less than the maximum staleness requirement and so incremental maintenance of materialized views is not needed.
Example syntax:
Epic: CRDB-13625
Jira issue: CRDB-15918