DocumentCode
2506716
Title
Efficient maintenance of materialized top-k views
Author
Yi, Ke ; Yu, Hai ; Yang, Jun ; Xia, Gangqiang ; Chen, Yuguo
Author_Institution
Dept. of Comput. Sci., Duke Univ., Durham, NC, USA
fYear
2003
fDate
5-8 March 2003
Firstpage
189
Lastpage
200
Abstract
We tackle the problem of maintaining materialized top-k views. Top-k queries, including MIN and MAX as important special cases, occur frequently in common database workloads. A top-k view can be materialized to improve query performance, but in general it is not self-maintainable unless it contains all tuples in the base table. Deletions and updates on the base table may cause tuples to leave the top-k view, resulting in expensive queries over the base table to "refill" the view. We propose an algorithm that reduces the frequency of refills by maintaining a top-k\´ view instead of a top-k view, where k\´ changes at runtime between k and some kmax≥k. We show that in most practical cases, our algorithm can reduce the expected amortized cost of refill queries to O(1) while still keeping the view small. The optimal value of kmax depends on the update pattern and the costs of querying the base table and updating the view. Compared with the simple approach of maintaining either the top-k view itself or a copy of the base table, our algorithm can provide orders-of-magnitude improvements in performance with appropriate kmax values. We show how to choose kmax dynamically to adapt to the actual system workload and performance at runtime, without requiring accurate prior knowledge.
Keywords
computational complexity; query processing; relational databases; base table; database workloads; materialized top-k views maintenance; orders-of-magnitude improvements; query performance; system workload; top-k´ view; Cost function; Databases; Frequency; Runtime; Statistics; Warehousing;
fLanguage
English
Publisher
ieee
Conference_Titel
Data Engineering, 2003. Proceedings. 19th International Conference on
Print_ISBN
0-7803-7665-X
Type
conf
DOI
10.1109/ICDE.2003.1260792
Filename
1260792
Link To Document