473,796 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

trigger vs. application code performance

typed this into the ibm.com search window, but didn't get anything
that looked like it would answer a question:

+trigger +faster +db2 +cobol
the question: are DB2 (390/v6, at the moment) triggers better
or worse (and how much so, of course) than the same functionality
coded in COBOL? assuming, of course, equal competence in the code.

conventional wisdom, as received, is that triggers are worse, given
that they are 'interpreted' on each invocation. tried about the same
input to the Redbooks search and got 0 hits. hmmm. seems like a basic
question for which IBM would have a ready answer.

(tried the same input to this group. nuthin. more hmmmmm.)

thanks,
robert
Nov 12 '05 #1
2 2743
If you leave out +Cobol you will get hundreds of hits.

To answer your question: it probably depends on
- For instance is your Cobol appl running on the same host as DB2 or
remotely via DB2 Connect?
- what you are doing in your trigger

And of course you probably realize that using a trigger might save you a
lot of code if you have more that one application updating/inserting
into that table.

robert wrote:
typed this into the ibm.com search window, but didn't get anything
that looked like it would answer a question:

+trigger +faster +db2 +cobol
the question: are DB2 (390/v6, at the moment) triggers better
or worse (and how much so, of course) than the same functionality
coded in COBOL? assuming, of course, equal competence in the code.

conventional wisdom, as received, is that triggers are worse, given
that they are 'interpreted' on each invocation. tried about the same
input to the Redbooks search and got 0 hits. hmmm. seems like a basic
question for which IBM would have a ready answer.

(tried the same input to this group. nuthin. more hmmmmm.)

thanks,
robert


Nov 12 '05 #2
Anton Versteeg <an************ @nnll.ibm.com> wrote in message news:<c5******* ****@sp15en20.h ursley.ibm.com> ...
If you leave out +Cobol you will get hundreds of hits.

To answer your question: it probably depends on
- For instance is your Cobol appl running on the same host as DB2 or
remotely via DB2 Connect?
- what you are doing in your trigger

And of course you probably realize that using a trigger might save you a
lot of code if you have more that one application updating/inserting
into that table.
oh yeah. but my opponents (who wrote the system in COBOL/VSAM/CICS in
the '70s) in this exercise assert that COBOL is faster. period.

one database <-> one application

in this case, yes the COBOL is on the same host. and the tables are,
in
general, not in first normal form.

what i'm looking for, and neither the titles nor the summaries jumped
out at me, is a description of the trigger execution model and a
comparison to native code (whether COBOL, C, or java). so, is it true
that triggers are stored as text, translated to p-code on first
call, and interpreted by a p-code engine on each subsequent call? or
are they stored as text, compiled to native code on first call, then
executed by an O/S process after that?

and so on. not that i'm looking to someone in the group to type
all that; rather a reference to a white paper or redbook or article
describing how they actually work.

thanks,
robert


robert wrote:
typed this into the ibm.com search window, but didn't get anything
that looked like it would answer a question:

+trigger +faster +db2 +cobol
the question: are DB2 (390/v6, at the moment) triggers better
or worse (and how much so, of course) than the same functionality
coded in COBOL? assuming, of course, equal competence in the code.

conventional wisdom, as received, is that triggers are worse, given
that they are 'interpreted' on each invocation. tried about the same
input to the Redbooks search and got 0 hits. hmmm. seems like a basic
question for which IBM would have a ready answer.

(tried the same input to this group. nuthin. more hmmmmm.)

thanks,
robert

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1473
by: Ramprasad Ramamurthy | last post by:
Hi, I am in the process of writing a document on "How to Test Application Code Blocks" from performance, security perspectives. It would be great if you can share with me the testing process you followed in your projects that involved application code blocks. It would be more useful if specific testing was done for application code blocks for performance/scalability/security requirements of the project.
0
900
by: Ramprasad Ramamurthy | last post by:
Hi, Could you please share the issues you faced when using any of application code block that Microsfot provides in your projects. It would be great if you could share some of the performance and security features you have added to the application code block
2
1364
by: hb | last post by:
Hi, I have a asp.net web application written in C#. The application is backed by a SQL Server 2000 database. At current time, it's very slow. I guess there are problems on asp.net coding, stored procedure coding and database design. Would you please tell me the right steps to find out those spots that pull back the performance.?
1
4334
by: mark10 | last post by:
Hello!I am new in this site and wish to improve my java clent server application code.It's to connect the client to the server through a port and random jokes request by the client to the server be sent to the client. Thanks
5
1941
by: manjitsarma | last post by:
I have changed the following original vb.net window application code Public Overrides Function SetTheme(ByRef frmObj As System.Windows.Forms) As Boolean into c#.net as-
30
3550
by: galiorenye | last post by:
Hi, Given this code: A** ppA = new A*; A *pA = NULL; for(int i = 0; i < 10; ++i) { pA = ppA; //do something with pA
3
1628
by: George2 | last post by:
Hello everyone, I found that for an application, if I specify the entry point function (e.g. main), the performance of startup will be greatly improved. My questions are, 1. If no entry point is specified, how will debugger of Visual Studio find the entry point function? Will the time to search entry point
0
1158
by: Dudeja, Rajat | last post by:
Hi, I'm learning Python to write a GUI application using Tkinter & Tk. I've evaluated Eclipse and Pydev. With the help of Fabio Zadrozny I successfully installed Eclipse and PyDev. Thanks. Now, I'm learning Eclipse and PyDev. And my problem is that I don't have an understanding of how the code in
2
2481
by: Fredrik Lundh | last post by:
Dudeja, Rajat wrote: A Python program consists of a script file (the py file you run to start the program), and usually one or more additional module files (py files that you import). The latter can be organized in packages, where appropriate. There's also a search path (sys.path) that you can modify in various ways (including from within the program) if you want to fetch modules from different locations.
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10461
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10190
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10019
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5447
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.