Ämne: Triggers
Visa ett inlägg
Oläst 2004-12-04, 11:11 #21
rics avatar
ric ric är inte uppkopplad
Mycket flitig postare
 
Reg.datum: Feb 2004
Inlägg: 665
ric ric är inte uppkopplad
Mycket flitig postare
rics avatar
 
Reg.datum: Feb 2004
Inlägg: 665
Jag slog upp lite mer information, orkar dock inte översätta.

" Triggers can be a very powerful mechanism if used appropriately. The major advantage is that standard functions can be stored within the database and enforced consistently with each update to the database. This can dramatically reduce the complexity of applications. However, there can be some disadvantages:

* Complexity When functionality is moved from the application to the database, the database design, implementation, and administration tasks become more complex.

* Hidden functionality Moving functionality to the database and storing it as one or more triggers can have the effect of hiding functionality from the user. While this can simplify things for the user, unfortunately it can also have side effects that may be unplanned, and potentially unwanted and erroneous. The user no longer has control over what happens to the database.

* Performance overhead When the DBMS is about to execute a statement that modifies the database, it now has to evaluate the trigger condition to check whether a trigger should be fired by the statement. This has a performance implication on the DBMS. Clearly, as the number of triggers increases, this overhead also increases. At peak times, this overhead may create performance problems. "

Citat ur: Connolly T., Begg C., Database systems, 2002, sid. 922
ric är inte uppkopplad   Svara med citatSvara med citat