Updating materialized views when data goes away #408
Replies: 2 comments
-
Good morning, Walther. Yes the mat view should not include deleted rows from tables (or views) that no longer contain the row. Only one the refresh has happened or course.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wdiechmann
-
thank you so much @calebhearth - now I just need to find the culprit making this not happening (but that's a lot easier once you know what to expect) 😉
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This question may be a total 'n00b' one - but here goes anyway:
I'm using materialized views with Scenic and being quite happy with it too!
My app is multi tenant-ish and I'm allowing users a free trial. Some may leave, and then I have to 'clean' up after - deleting records right and left. I've got a background job running to refresh my materialized views
and all is good and well.
But I'm not sure if the cached tables are being emptied of data belonging to accounts deleted?
(If this all makes no sense what so ever please accept my apologies)
Beta Was this translation helpful? Give feedback.
All reactions