Method of executing before-triggers in an active database
Abstract
A method for executing before-triggers in an active database. A tree of actions is constructed for each activated before-trigger and a tree of operators is constructed for the statement that activates the trigger. A table affecting operator that is included in the activating statement is removed from the statement tree and a temporary execution operator is formed from any remaining actions of the activating statement. The temporary execution operator and the activated before-triggers are then included in an insertion operator that is configured to send updated rows into a temporary table. The table affecting operator is then interconnected to execute subsequent to the insertion operator. Any activated row-after and statement-after triggers are interconnected to execute subsequent to the execution of the table-affecting operator.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 40.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of forming an execution plan for a plurality of trigger actions in an active database having at least one table, each table having at least one row, comprising: determining the triggers activated by an activating statement, wherein the activated triggers are before-triggers; forming an operator tree for the activating statement, the activating statement including a table-affecting operator; forming an action tree for each trigger action that is activated by the statement; removing the table-affecting operator from the activating statement tree; creating a tentative execution operator
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗