sql server - Performance of Views in TSQL -
how sql server handle updates on views. worried performance , wanted know overview of how , when views change.
a [non-materialized] view stored query gets run when use view name in query.
performance [non-materialized] view comes query getting cached, because view's underlying query doesn't change. once view query altered, first time take little longer subsequent ones because there's nothing in query cache.
you can use sp_refreshview, have have experienced locking (even within readuncommitted transaction).
materialized ("indexed" in tsql/sql server) views different matter.
Comments
Post a Comment