Rebuilding dependent views #388
HakubJozak
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On my current project, we have a following layered structure of table and 2 views:
A)
ledger_breakdown_keys
- tableB)
ledger_billing_entries
- view built on top of AC)
ledger_usage_entries
- materialized view on top of BWhen I need to update the underlying table A, I often have to rebuild B and C but I haven't found an out-of-the-box way of how to rebuild a dependent materialized view in Scenic. So far I am using this migration (see example).
Do you think that abstracting that could be in any way useful to others? Dependent views does not seem to be so uncommin usecase but I may be wrong. I can forge a PR if we agree that would be useful:
Beta Was this translation helpful? Give feedback.
All reactions