A type of view in SQL-Server that has materialized indexes and statistics.

learn more… | top users | synonyms (1)

2
votes
2answers
833 views

Error updating a master table of a materialized view

I've created several materialized views, and all but one are working correctly. The specific error I'm getting (via a Java job) is this: error loading from table 'STG_INTERACTION_RESOURCE_FACT' to ...
7
votes
2answers
2k views

Limit redo for materialized view complete refresh or manual equivalent

A materialized view(MV) log can be used to allow a MV to do a fast refresh which only modifies the data that has changed. However, various conditions prevent the MV from using the log and therefore ...
5
votes
2answers
888 views

Using totals on aggregates to improve performance

I have two tables: details and totals of these details. Details (Slow solution): select OrderId = r.OrderId , TotalQty = SUM(r.Quantity) , ...