Solved

Trigger impact on overall DB performance

Posted on 2001-07-26
2
2,090 Views
Last Modified: 2012-05-11
We currently have a Vitria Enterprise Application Integration implementation in progress. One of the systems we're integrating is a billing system. The client is extremely concerned with the performance impact on the billing system, due to some current application performance issues.

What we're doing to the billing system's Oracle database is the following:
- The DB currently has MANY triggers on different tables
- We will be creating one (1) extra table for Vitria
- We will be adding a trigger on an existing table to write to the new table -> the trigger will be inserting 15~20 fields of data (from 1 table) to the new table (no complex SQL at all)
- During each billing cycle, the # of record sets being processed is around 110,000 - we'll be capturing the change only in one table (so around additional 110,000 trigger fires and table inserts)

We've been promised by Vitria (the vendor) that this would pose zero or minimal impact to the Oracle DB. We've also heard from a similar project that the impact to the system is not noticeable. However, the client is still extremely concerned.

What we'd like to know is -> what type of impact can we expect by adding this relatively simple trigger to the database?

Please provide as much detail (if there're any) as possible. Thanks very much in advance!
0
Comment
Question by:chenst2000
2 Comments
 
LVL 3

Accepted Solution

by:
UsamaMunir earned 50 total points
ID: 6321363
Hi

Obviously The Firing of a Trigger, does impact the performance. Esp if u have to insert that many rows in another table against each row in one table. Hoever there are a few things that can be done about it

for example, one thing that one can do is to write the trigger code in a stored procedure and call it from the trigger. The performance impact is great b'coz the procedure is already compiled and trigger needs to be compiled everytime before execution.

as a lot of rows are being inserted, BULK BINDS can be used to increse the DML performance.

So triggeres are bound to produce performance overhead, but it can be handled using apprpriate technique.

U
0
 
LVL 5

Expert Comment

by:ser6398
ID: 6322083
Based on what you describe, I would guess that the impact of adding that trigger would be very small, and probably not even noticable.  A simple Insert/Audit trigger is very common, and there normally is no way around taking a very small hit in performance.  If your client is really worried about it, I suggest a simple test to show the minute impact of this trigger:

In a test database, create 2 tables.  The one with the trigger on it and the one Vitria wants to add.  Make them contain similiar columns.  Create the trigger and add it to the table.  Create a sql script with a bunch of insert statements.  Run this script against your table and see how long it takes to execute.  Then truncate both tables, and disable (or remove) the trigger.  Now run the script again and time it.  I think you will not see a very big difference in time.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Extract the first word (before the , ) 2 48
Converting a row into a column 2 51
Processing of multiple cursor 6 45
Shredding xml into an oracle 11g Database 2 42
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question