Claims
- 1. A system, comprising:
a database manager coupled to a database, the data base manager:
joins a first trigger tree to an operator tree by interconnecting a flow operator between the first trigger tree and the operator tree; and joins a second trigger tree to an operator tree by interconnecting a flow operator between a temporary table and the operator tree and interconnecting an ordered union operator between the flow operator and the second trigger tree.
- 2. The system of claim 1 wherein the temporary table stores rows of an input table that are affected by execution of an activating statement.
- 3. The system of claim 2 wherein the rows of the input table that are affected by execution of the activating statement are pipelined to a trigger associated with the first trigger tree.
- 4. The system of claim 1 wherein the database manager joins a plurality of trigger trees to an operator tree by connecting each tree to a parallel union operator and interconnecting a flow operator between the parallel union operator and the operator tree.
- 5. The system of claim 1 wherein the database manager joins a plurality of trigger trees to an operator tree by connecting each trigger tree to a parallel union operator, interconnecting an ordered union operator between the parallel union operator and a flow operator, and interconnecting the flow operator between the temporary table and the operator tree.
- 6. A method, comprising:
executing a first type of triggers in parallel with each other; pipelining the first type of triggers with an activating statement; and executing a second type of triggers in parallel with each other and subsequent to the activating statement.
- 7. The method of claim 6 further comprising creating a temporary table, wherein the temporary table comprises rows of a input table that are affected by the activating statement.
- 8. The method of claim 7 further comprising providing the rows of the temporary table as input to the first type of triggers.
- 9. The method of claim 6 further comprising:
forming a plurality of execution plans associated with executing the first type of triggers, pipelining the first type of triggers with the activating statement, and executing the second type of triggers; and evaluating the plans in terms of a performance metric.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is a continuation of copending application Ser. No. 09/823,337, filed Mar. 29, 2001, which is hereby incorporated by reference herein. This application is related to U.S. application entitled “A METHOD OF EXECUTING CONFLICTING TRIGGERS IN AN ACTIVE DATABASE”, Ser. No. 09/823,340, filed on Mar. 29, 2001; and to U.S. application entitled “A METHOD OF EXECUTING BEFORE-TRIGGERS IN AN ACTIVE DATABASE, Ser. No. 09/822,996, filed on Mar. 29, 2001.
Continuations (1)
|
Number |
Date |
Country |
Parent |
09823337 |
Mar 2001 |
US |
Child |
10715983 |
Nov 2003 |
US |