Inventors:
Nathaniel Keith Folkert - San Francisco CA, US
Abhinav Gupta - Menlo Park CA, US
Andrew Witkowski - Foster City CA, US
Assignee:
Oracle International Corporation - Redwood Shores CA
International Classification:
G06F 17/30
US Classification:
707696, 707610, 707618, 707691, 707694, 707713, 707715, 707717, 707825, 707830
Abstract:
In an embodiment, estimated costs are used to pick the best refresh technique (e. g. , method) for a given MV. In another embodiment, estimated costs are used to schedule the refresh of a set MVs in an order such that overall time to refresh is reduced, or in an order that uses the smallest overall time, for refreshing when compared to other alternative refresh schedules. In another embodiment, the estimated cost of refreshing each of a set of MVs is used to select the set of CPU resources to allocate to refreshing each MV. Based on the estimated costs, the allocation of CPU resources is chosen to be more optimal (e. g. , use less CPU time) than other available sets of CPU resources. In an embodiment, when refreshing an MV, delayed index maintenance is chosen if a significant portion of the base table and/or the partitions of the table has changed.