Skip to main content

Optimising Active Database Rules by Partial Evaluation and Abstract Interpretation

  • Conference paper
  • First Online:
Database Programming Languages (DBPL 2001)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2397))

Included in the following conference series:

Abstract

A key issue for active databases is optimising the execution event-condition-action rules. In this paper we show how partial evaluation provides a formal and general route to optimising such rules. We produce a specialised version of the rule execution semantics for each possible sequence of actions that may execute from the current database state. This gives the opportunity to optimise rule execution for each particular sequence of actions. We obtain information about possible sequences of rule executions actions by applying abstract interpretation to the rule execution semantics. Our techniques are applicable both statically, i.e. at rule compilation time, and dynamically, during rule execution.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. S. Abramsky and C. Hankin, editors. Abstract Interpretation of Declarative Languages. Ellis Horwood, 1987.

    Google Scholar 

  2. J. Bailey and A. Poulovassilis. An abstract interpretation framework for termination analysis of active rules. In Proc. 7th Int. Workshop on Database Programming Languages LNCS 1949, pages 249–266, Scotland, 1999.

    Google Scholar 

  3. J. Bailey, A. Poulovassilis, and P. Newson. A dynamic approach to termination analysis for active database rules. In Proc. 1st Int. Conf. on Computational Logic (DOOD’2000 stream), LNCS 1861, pages 1106–1120, London, 2000.

    Google Scholar 

  4. E. Baralis and J. Widom. Using delta relations to optimize condition evaluation in active databases. In Proc. 2nd Int. Workshop on Rules in Database Systems (RIDS-95), LNCS 985, pages 292–308, Athens, 1995.

    Google Scholar 

  5. A. Cortesi, A. Dovier, E. Quintarelli, and L. Tanca. Operational and abstract semantics of a query language for semi-structured information. In Proc. 6th Int. Workshop on Deductive Databases and Logic Programming (DDLP’98), pages 127–140 GMD Report 22, ISSN 1435-2702, 1998.

    Google Scholar 

  6. P. Cousot and R. Cousot. Abstract interpretation frameworks. Journal of Logic Programming, 13(2&3):103–179, 1992.

    Article  MATH  MathSciNet  Google Scholar 

  7. A. Dinn, N. W. Paton, and M. Howard Williams. Active rule analysis and optimisation in the Rock and Roll deductive object oriented database. Information Systems, 24(4):327–352, 1999.

    Article  Google Scholar 

  8. Eric N. Hanson et al. Scalable trigger processing. In Proc. 15th ICDE, pages 266–275, Sydney, 1999.

    Google Scholar 

  9. F. Fabret, M. Regnier, and E. Simon. An adaptive algorit hm for increment al evaluation of production rules in databases. In Proc. 19th VLDB, pages 455–467, Dublin, Ireland, 1993.

    Google Scholar 

  10. T. Griffin, L. Libkin, and H. Trickey. A correction to Incremental recomputation of active relational expressions by Qian and Wiederhold. IEEE Trans. on Knowledge and Data Engineering, 9(3):508–511, 1997.

    Article  Google Scholar 

  11. E. Hanson. Rule condition testing and action execution in Ariel. In Proc. SIGMOD 1992, pages 49–58, San Diego, 1992.

    Google Scholar 

  12. N Jones. An introduction to partial evaluation. ACM Computing Surveys, 28(3):480–503, 1996.

    Article  Google Scholar 

  13. N. Jones, C. Gomard, and P. Sestoft. Partial Evaluation and Automatic Program Generation. Prentice Hall, 1993.

    Google Scholar 

  14. A. Kotz-Dittrich and E. Simon. Active database Systems: Expectations, Commerical Experience and Beyond. In Paton [19], pages 367–404.

    Google Scholar 

  15. K. Kulkarni, N. Mattos, and R. Cochrane. Active database features in SQL3. In Paton [19], pages 197–219.

    Google Scholar 

  16. F. Llirbat, F. Fabret, and E. Simon. Eliminating costly redundant computations from SQL trigger executions. In Proc. SIGMOD 1997, pages 428–439, 1997.

    Google Scholar 

  17. K. Marriott, H. Søndergaard, and N. D. Jones. Denotational abstract interpretation of logic programs. ACM TOPLAS, 16(3):607–648, 1994.

    Article  Google Scholar 

  18. F. Nielson, H.R. Nielson, and C. Hankin. Principles of Program Analysis. Springer-Verlag, 1999.

    Google Scholar 

  19. N. Paton, editor. Active Rules in Database Systems. Springer-Verlag, 1999.

    Google Scholar 

  20. S. Peyton Jones. The implementation of functional programming languages. Prentice-Hall, 1987.

    Google Scholar 

  21. X. Qian and G. Wiederhold. Incremental recomputation of active relational expressions. IEEE Trans. on Knowledge and Data Engineering, 3(3):337–341, 1991.

    Article  Google Scholar 

  22. S. Reddi, A. Poulovassilis, and C. Small. PFL: An active functional DBPL. In Paton [19], pages 297–308.

    Google Scholar 

  23. Martin Sköld and Tore Risch. Using partial differencing for efficient monitoring of deferred complex rule conditions. In Stanley Y. W. Su, editor, Proc. 12th ICDE, pages 392–401, 1996.

    Google Scholar 

  24. J. Widom and S. Ceri. Active Database Systems. Morgan-Kaufmann, San Mateo, California, 1995.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Bailey, J., Poulovassilis, A., Courtenage, S. (2002). Optimising Active Database Rules by Partial Evaluation and Abstract Interpretation. In: Ghelli, G., Grahne, G. (eds) Database Programming Languages. DBPL 2001. Lecture Notes in Computer Science, vol 2397. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-46093-4_18

Download citation

  • DOI: https://doi.org/10.1007/3-540-46093-4_18

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-44080-2

  • Online ISBN: 978-3-540-46093-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics