Skip to main content
Log in

Ein Schritt zurück ist kein Rückschritt

Mit flexibler Sondierung zum negativen Datenbank-Caching

  • Original Article
  • Published:
Informatik - Forschung und Entwicklung

Zusammenfassung

Ein Schlüssel zur Erhöhung der Qualität von Web-Anwendungen ist Caching. Während Web-Caching Dokumentfragmente bereithält, die zunehmend aus Datenbank-Daten generiert werden, richtet sich Datenbank-Caching auf die redundante Speicherung dieser Daten selbst. Eine adaptiv verwaltete Teilmenge der Backend-Daten ermöglicht im Cache durch Vollständigkeitseigenschaften die korrekte Auswertung von Anfragen.

In Cache Groups für Gleichheitsprädikate, einer Ausprägung des Constraint-basierten Datenbank-Caching, kann die Auswertbarkeit einer Anfrage durch einfache Sondierungsanfragen auf dem Cache-Inhalt entschieden werden. Wir präsentieren ein neues Sondierungsverfahren, das den Cache flexibler und für eine größere Anzahl von Anfragetypen nutzbar macht; dazu gehören unter dem Begriff des negativen Caching auch Anfragen mit leerem Ergebnis.

Wir untersuchen, ob sich das neue Sondierungsverfahren weiter verallgemeinern lässt, welche Alternativen sich für seine Umsetzung in konkreten Cache Groups bieten und wie sich der bisherige Ansatz darin einordnet. Das neue Verfahren macht außerdem eine Schwäche in der bisherigen Struktur von Cache Groups deutlich, die durch die Einführung von Kontrolltabellen behoben werden kann, und kann zur Wartung des Cache-Inhalts beitragen.

Abstract

A key to increasing the quality of web applications is caching. While web caching holds document fragments ready, which are increasingly generated from database data, database caching focuses on the redundant storage of these data themselves. By means of completeness properties, an adaptively managed subset of the backend data permits the correct evaluation of queries in the cache.

In cache groups for equality predicates (that is, in an instance of constraint-based database caching) the evaluability of a query can be determined through simple probe queries on the cache contents. We present a new probing procedure that makes the cache usable for more types of queries in a more flexible way; embraced by the term of negative caching, this even includes queries with empty results.

We investigate whether the new probing procedure can further be generalized, which alternatives exist for its realization in concrete cache groups, and how the previous approach fits into these. Additionally, the new procedure reveals a shortcoming in the current structure of cache groups, which can be remedied by introducing control tables, and aids in maintaining the cache contents.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Literatur

  1. Altinel M, Bornhövd C, Krishnamurthy S, Mohan C, Pirahesh H, Reinwald B (2003) Cache tables: Paving the way for an adaptive database cache. In: Proceedings of the 29th International Conference on Very Large Data Bases, VLDB 2003. Morgan Kaufmann, pp 718–729

  2. Andrews M (1998) Negative caching of DNS queries (DNS NCACHE). Request for Comments (RFC) 2308. URL ftp://ftp.rfc-editor.org/in-notes/rfc2308.txt

  3. Bornhövd C, Altinel M, Mohan C, Pirahesh H, Reinwald B (2004) Adaptive database caching with DBCache. Data Engineering Bulletin 27(2):11–18

    Google Scholar 

  4. Bühmann A (2005) Einen Schritt zurück zum negativen Datenbank-Caching. In: BTW 2005: Datenbanksysteme für Business, Technologie und Web, Lecture Notes in Informatics. Gesellschaft für Informatik, Karlsruhe

  5. Härder T, Bühmann A (2004) Database caching – Towards a cost model for populating cache groups. In: Advances in Databases and Information Systems, 8th East European Conference, ADBIS 2004, Lecture Notes in Computer Science, vol 3255. Springer, pp 215–229

  6. Härder T, Bühmann A (2004) Datenbank-Caching – Eine systematische Analyse möglicher Verfahren. Informatik – Forschung und Entwicklung 19(1):2–16

  7. Härder T, Bühmann A (2004) Query processing in constraint-based database caches. Data Engineering Bulletin 27(2):3–10

    Google Scholar 

  8. Härder T, Bühmann A (2004) Value complete, domain complete, predicate complete – Magic words driving the design of cache groups. URL http://wwwdvs.informatik.uni-kl.de/pubs/papers/HB04.Magic.html

  9. Larson P, Goldstein J, Guo H, Zhou J (2004) MTCache: Midtier database caching for SQL server. Data Engineering Bulletin 27(2):35–40

    Google Scholar 

  10. Larson P, Goldstein J, Zhou J (2004) MTCache: Transparent midtier database caching in SQL server. In: Proceedings of the 20th International Conference on Data Engineering, ICDE 2004. IEEE Computer Society, pp 177–189

  11. Vossen G, Rahm E (eds) (2002) Web & Datenbanken: Konzepte, Architekturen, Anwendungen, chap 7. dpunkt.verlag, Heidelberg, pp 191–216

Download references

Author information

Authors and Affiliations

Authors

Additional information

CR Subject Classification

C.2.4,H.2.4

Rights and permissions

Reprints and permissions

About this article

Cite this article

Bühmann, A. Ein Schritt zurück ist kein Rückschritt. Informatik Forsch. Entw. 20, 184–195 (2006). https://doi.org/10.1007/s00450-005-0191-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00450-005-0191-y

Keywords

Navigation