Updating Multi-table Views Based on Commutative Database Transformations

Authors

DOI:

https://doi.org/10.14529/cmse190206

Keywords:

commutative transformation, relational algebra, multi-table views, view updating, relational DBMS, triggers

Abstract

In modern relational database technologies, views implement the external layer of the ANSI-SPARC architecture, which encapsulates details of the database conceptual structure from end-users. However, when using views, we need to solve the problem of correct view updating: DBMS must execute insertion, deletion, and updating tuples of the view while providing correct modifications of corresponding target relation(s) of this view. To solve this problem, the SQL standard introduces a strict restriction: only one tuple in the target relation can correspond to the modified tuple in the view. In addition, triggers are not a satisfactory solution of this problem because of necessity of such a trigger for each view of the database, and unpredictable sequence in execution of triggers that belong to the same view, etc. The paper presents an approach to solve the problem of correct view updating based on the commutative database transformations. This does not limit the tuple uniqueness in the target relation that corresponds to the updated tuple in the view. We describe the DBMS Coprocessor, which is deployed on the client computer and provides commutative transformations in the database relations stored on the server side. The coprocessor generates a transaction's script that implements commutative transformations and runs the transaction on the server. We present implementation of the Coprocessor for the PostgreSQL open-source DBMS. Experimental evaluation confirms the effectiveness of the proposed approach in OLAP and OLTP applications.

Author Biographies

Vladimir S. Zykin, Omsk State Technical University

кафедра прикладной математики и фундаментальной информатики

Mikhail L. Zymbler, South Ural State University

нач. отдела интеллектуального анализа данных и виртуализации ЛСМ ЮУрГУ

References

Zykin V.S. Multi-table Data View Editor: Certificate of State Registration of Computer Programs - No. 2018661249; registration date: 04.09.2018; Copyright holder: Omsk State Technical University.

Zykin V.S. Referential Integrity of Data in Corporate Information Systems, Informatics and Applications. 2015. vol. 9. no 3. pp. 119-127.

Zykin S.V., Zykin V.S. Commutative Conversion in the Database when Editing a Multitable Query. Information Technologies. 2018. vol. 24, no. 5. pp. 330-338. DOI: 10.17587/it.24.330-338.

Bancilhon F., Spyratos N. Update Semantics of Relational Views. ACM Trans. Database Syst. 1981. vol. 6, no. 4. pp. 557-575. DOI: 10.1145/319628.319634.

Bertossi L., Salimi B. Causes for Query Answers from Databases: Datalog Abduction, View-updates, and Integrity Constraints. Int. J. Approx. Reason. 2017. vol. 90. pp. 226-252. DOI: 10.1016/j.ijar.2017.07.010.

Dayal U., Bernstein P.A. On the Correct Translation of Update Operations on Relational Views. ACM Trans. Database Syst. 1982. vol. 7, no. 3. pp. 381-416. DOI: 10.1145/319732.319740.

Garcia-Molina H., Ullman J.D., Widom J. Database System Implementation. Prentice Hall, 2000. 653 p.

Ghandeharizadeh S., Yap J. SQL Query to Trigger Translation: A Novel Transparent Consistency Technique for Cache Augmented SQL Systems. Proceedings of the 28th International Workshop on Database and Expert Systems Applications, DEXA 2017, August 28-31, 2017, Lyon, France. pp. 37-41. DOI: 10.1109/DEXA.2017.24.

Gottlob G., Paolini P., Zicari R. Properties and Update Semantics of Consistent Views // ACM Trans. Database Syst. 1988. vol. 13, no. 4. p. 486-524. DOI: 10.1145/49346.50068.

Hayamizu Y., Kawamichi R., Goda K., Kitsuregawa M. Benchmarking and Performance Analysis of Event Sequence Queries on Relational Database. Proceedings of the 10th (TPC) Technology Conference Performance Evaluation and Benchmarking for the Era of Artificial Intelligence, TPCTC, August 27-31, 2018, Rio de Janeiro, Brazil. pp. 110-125. DOI: 10.1007/978-3-030-11404-6_9.

Interim Report: ANSI/X3/SPARC Study Group on Data Base Management Systems. FDT - Bulletin of ACM SIGMOD. 1975. vol. 7, no. 2. pp. 1-140.

ISO/IEC 9075:1987 Information technology. Database languages. SQL. Washington. 1987.

ISO/IEC 9075-11:2016 Information technology. Database languages. SQL. Part 11: Information and Definition Schemas (SQL/Schemata). Washington. 2016. 327 p.

Keller A. Algorithms for Translating View Updates to Database Updates for Views Involving Selections, Projections and Joins. Proceedings of the 4th ACM SIGACT-SIGMOD Symposium on Principles of Database Systems, PODS'85, March 25-27, 1985, Portland, USA. ACM, 1985. pp. 154-163. DOI: 10.1145/325405.325423.

Langerak R. View Updates in Relational Databases with an Independent Scheme. ACM Trans. Database Syst. 1990. vol. 15, no. 1. pp. 40-66. DOI: 10.1145/77643.77645.

Lechtenborger J. The Impact of the Constant Complement Approach Towards View Updating. Proceedings of the 22nd ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, PODS'03, June 9-11, 2003, San Diego, CA, USA. ACM, 2003. pp. 49-55. DOI: 10.1145/773153.773159.

Li Y., Levine C. Extending TPC-E to Measure Availability in Database Systems. Proceedings of the 10th Technology Conference Measurement and Characterization, August 29 - September 3, 2011, Seattle, WA, USA. pp. 111-122. DOI: 10.1007/978-3-642-32627-1_8.

Masunaga Y. A Relational Database View Update Translation Mechanism. Proceedings of the 10th International Conference on Very Large Data Bases, VLDB'84, August 27-31, 1984, Singapore. pp. 309-320.

Mosin S.V., Zykin S.V. Truth Space Method for Caching Database Queries. Modeling and Analysis of Information Systems. 2015. vol. 22, no 2. pp. 248-258.

Stonebraker M. Triggers and Inference In Database Systems. On Knowledge Base Management Systems (Islamorada). 1985. pp. 297-314.

Published

2019-06-13

Issue

Section

Informatics, Computers and Control