Optimizing Repetitive Computations of Database Triggers Within a Transaction - Inria - Institut national de recherche en sciences et technologies du numérique
Rapport (Rapport De Recherche) Année : 1995

Optimizing Repetitive Computations of Database Triggers Within a Transaction

Eric Simon
  • Fonction : Auteur

Résumé

We study the problem of optimizing costly repetitive evaluations of database triggers within a transaction. We first show that well known incremental rule evaluation algorithms such as RETE or TREAT are inappropriate for that because they do not consider how repetitive triggerings of rules can be caused by the structure of transaction programs. Therefore, their decision of precomputing and caching some expressions in rule conditions for a later reuse can be erroneous. We assume that transaction programs are represented by their flow graph. We then propose an algorithm that, given a transaction's flow graph, and a set of triggers, constructs a compact data structure called a triggering graph. First, for each possible transaction execution, this graph indicates which rules may be triggered. Second, for every rule $r$ capable of being triggered and fired several times, the graph represents the real «influence» of both the transaction and the rules on $r$. This provides the necessary information for deciding which subexpressions of $r$ are most profitable to cache for the considered transaction.
Fichier principal
Vignette du fichier
RR-2533.pdf (224.54 Ko) Télécharger le fichier
Loading...

Dates et versions

inria-00074145 , version 1 (24-05-2006)

Identifiants

  • HAL Id : inria-00074145 , version 1

Citer

Françoise Fabret, Eric Simon. Optimizing Repetitive Computations of Database Triggers Within a Transaction. [Research Report] RR-2533, INRIA. 1995. ⟨inria-00074145⟩
69 Consultations
43 Téléchargements

Partager

More