xelixdev / django-pgviews-redux

Fork of django-postgres that focuses on maintaining and improving support for Postgres SQL Views.
The Unlicense
64 stars 15 forks source link

Refresh dependent views when calling `.refresh()` #44

Open radusuciu opened 6 months ago

radusuciu commented 6 months ago

If you have materialized views that depend on one another, they are created in the correct order, but when you call .refresh() the caller needs to take care to refresh all dependent views or risk working with stale data.

mikicz commented 5 months ago

Yes this is true. In my projects we have an utility for this, I will port it here at some point!