Solved

Trigger impact on overall DB performance

Posted on 2001-07-26
2
2,182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

734 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