View previous topic :: View next topic |
Author |
Message |
s_shivaraj Beginner
Joined: 21 Sep 2004 Posts: 140 Topics: 14 Location: Chennai, India
|
Posted: Tue Sep 11, 2007 6:08 pm Post subject: DB2 Stored procedure |
|
|
Board,
One of the online program currently has several insert stmts (say around 20 columns) for differnt table, this program is called around 10K or more times daily. We are thinking of using stored procedure for doing the above inserts, to improve the performance.
Like to know how much stored proc can really help us in improving the performance. What are the factors i need to work before going for stored procedures.
Note :- Each insert is happening in a seperate transaction , which has totally differnt set of values. _________________ Cheers
Sivaraj S
'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity' |
|
Back to top |
|
|
vivek1983 Intermediate
Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
|
Back to top |
|
|
vivek1983 Intermediate
Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
|
Back to top |
|
|
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Wed Sep 12, 2007 7:59 am Post subject: |
|
|
I don't see how a stored proc is going to improve the performance. There is a cost to invoking a stored proc. I'd be very careful and take measurements before I'd convert an existing program with INSERTs to a stored proc. |
|
Back to top |
|
|
Manas Biswal Intermediate
Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Thu Sep 20, 2007 2:19 am Post subject: |
|
|
Agree with jsharon1248. Don't see a big performance improvement unless the INSERTS are invoked from a remote client.
Regards,
Manas _________________ There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948) |
|
Back to top |
|
|
|
|