I wonder if I have a “view A”, that select from a “table B”.
If the computation of A is quite computational intensive. When I update a small portion of B, will the entire “view A” be recomputed, or only the part that have changed will be recomputed?
Yes, I know view is only computed when it was referenced. But I am also interested if “partial” computation exist.
No, I don’t think there is any “partial recomputation” there. The definition of A will be reused to refresh the snapshot for A when it’s first referenced after B is modified.
if a view is invalidated, the view expression is executed the next time the view is used. You can decide what the view expression does in terms of what to recalc.
although .z.vs is triggered each time a global is amended, it’s a bit messy trying to keep track of what has changed in the view, especially since when the view does update it should not change globals to reset the change list.
However, you can calc what changed since last time in the view itself. e.g.