This thesis presents the design and analysis of a collection of algorithms to support triggers, inference rules, and derived data objects (e.g. views) in relational database systems. A view maintenance algorithm, is a method for maintaining and incrementally updating a physically stored copy of a database view. A new view maintenance algorithm called Rete view maintenance (RVM) is proposed in this thesis. RVM is based on the Rete Network, a type of discrimination network used to test rule conditions in forward-chaining rule interpreters. A collection of algorithms is also proposed to allow maintenance of materialized aggregates and aggregate functions.
By keeping a stored copy of a view up-to-date using a view maintenance algorithm, it is possible to process view queries directly using the copy. The conventional way to process queries against views is to use query modification, whereby a view query is translated into an equivalent query that refers only to the base relations. A performance analysis is presented which compares the average cost of a view query for these two alternatives for different view types.
A related performance analysis is also presented comparing the costs of different algorithms for querying database procedures. The database procedures analyzed are made up of one or more database queries stored in the field of a record. The value of a database procedure is the result of executing the query or queries in its definition. Three different algorithms for processing queries against database procedures are evaluated. As in the case for views, the average query cost for each algorithm is compared.
Finally, enhancements to the rule sublanguage of the POSTGRES database management system are proposed to increase the power of the language and to simplify implementation of rule-based applications. Methods are presented for implementing the new language features efficiently using view maintenance methods combined with techniques for indexing rule predicates.
Cited By
- Snodgrass R, Gomez S and McKenzie E (2018). Aggregates in the Temporal Query Language TQuel, IEEE Transactions on Knowledge and Data Engineering, 5:5, (826-842), Online publication date: 1-Oct-1993.
- Ceri S and Widom J Deriving Production Rules for Incremental View Maintenance Proceedings of the 17th International Conference on Very Large Data Bases, (577-589)
- Humphrey S and Krovetz B (1989). Selected AI-related dissertations, ACM SIGART Bulletin:108, (217-226), Online publication date: 1-Apr-1989.
- Hanson E Processing queries aganist database procedures: a performance analysis Proceedings of the 1988 ACM SIGMOD international conference on Management of data, (295-302)
- Sellis T, Lin C and Raschid L Implementing large production systems in a DBMS environment: concepts and algorithms Proceedings of the 1988 ACM SIGMOD international conference on Management of data, (404-423)
- Hanson E (2019). Processing queries aganist database procedures: a performance analysis, ACM SIGMOD Record, 17:3, (295-302), Online publication date: 1-Jun-1988.
- Sellis T, Lin C and Raschid L (2019). Implementing large production systems in a DBMS environment: concepts and algorithms, ACM SIGMOD Record, 17:3, (404-423), Online publication date: 1-Jun-1988.
Recommendations
Set-oriented production rules in relational database systems
SIGMOD '90: Proceedings of the 1990 ACM SIGMOD international conference on Management of dataWe propose incorporating a production rules facility into a relational database system. Such a facility allows definition of database operations that are automatically executed whenever certain conditions are met. In keeping with the set-oriented ...
Set-oriented production rules in relational database systems
We propose incorporating a production rules facility into a relational database system. Such a facility allows definition of database operations that are automatically executed whenever certain conditions are met. In keeping with the set-oriented ...
IBM Relational Database Systems: The Early Years
The relational data model, proposed by E.F. Codd in 1970, inspired several research projects at IBM and elsewhere. Among these was System R, which demonstrated the commercial viability of relational database systems. This article describes the research ...