i grab quotes now and again for use as footers to e-mail
here in CubeLand. found this one in the stash:
the logic exercised by the database to maintain referential
integrity is not free, but if the rdbms does not do
it, it gets done in the application, where it costs the
same if not more - just now the application becomes
"slower" versus the rdbms.
-- Blair Adamanche/2003
while i certainly agree, i've been looking, without success,
for some numbers that confirm the assertion. if Mr. A is
lurking, can you provide a reference?
thx,
btdb 3 1445
BobTheDatabaseB oy wrote: i grab quotes now and again for use as footers to e-mail here in CubeLand. found this one in the stash:
the logic exercised by the database to maintain referential integrity is not free, but if the rdbms does not do it, it gets done in the application, where it costs the same if not more - just now the application becomes "slower" versus the rdbms. -- Blair Adamanche/2003
while i certainly agree, i've been looking, without success, for some numbers that confirm the assertion. if Mr. A is lurking, can you provide a reference?
thx, btdb
That really doesn't require numbers, just horse sense.
Teh app sits on the client. Why make another network trip to confirm
soemthing that thr DBMS can confirm directly?
Also if more than one row is affected the DBMS can parallelize the effort.
In general the app is single threaded...
What soemtimes happes is that the App verifies check and RI "anyway" or
certain properties ar eenforced on a different plane.
In this case DB2 can be taught to trust the app using NOT ENFORCED
ENABLE QUERY OPTIMIZATION properties for check and RI constraints.
Cheers
Serge
Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Serge Rielau wrote: BobTheDatabaseB oy wrote: i grab quotes now and again for use as footers to e-mail here in CubeLand. found this one in the stash:
the logic exercised by the database to maintain referential integrity is not free, but if the rdbms does not do it, it gets done in the application, where it costs the same if not more - just now the application becomes "slower" versus the rdbms. -- Blair Adamanche/2003
while i certainly agree, i've been looking, without success, for some numbers that confirm the assertion. if Mr. A is lurking, can you provide a reference?
thx, btdb That really doesn't require numbers, just horse sense. Teh app sits on the client. Why make another network trip to confirm soemthing that thr DBMS can confirm directly? Also if more than one row is affected the DBMS can parallelize the
effort. In general the app is single threaded...
What soemtimes happes is that the App verifies check and RI "anyway"
or certain properties ar eenforced on a different plane. In this case DB2 can be taught to trust the app using NOT ENFORCED ENABLE QUERY OPTIMIZATION properties for check and RI constraints.
Cheers Serge Cheers Serge
-- Serge Rielau DB2 SQL Compiler Development IBM Toronto Lab
the arguement i most often get, without numbers on either side, is
that the DB2 engine is an interpreter, while the COBOL code is fully
compiled, and thus "must" be faster. clearly, RI has to be faster
than app code. the question comes down to db code vs. app code for
check constraints, triggers, SP and the like. since, presumably, a
cycle is a cycle is a cycle, the closer to the metal the better. and
since the SPs are compiled through C, they should be just as close
to the metal as compiled COBOL. i have this recollection that some
COBOL compilers are now just C preprocessors. probably not on z/OS,
though.
it sure would make for a fascinating study. CubeLand does have more
of some horse stuff than horse sense.
thx,
btdb
BobTheDatabaseB oy wrote: Serge Rielau wrote:
BobTheDatabas eBoy wrote:
i grab quotes now and again for use as footers to e-mail here in CubeLand. found this one in the stash:
the logic exercised by the database to maintain referential integrity is not free, but if the rdbms does not do it, it gets done in the application, where it costs the same if not more - just now the application becomes "slower" versus the rdbms. -- Blair Adamanche/2003
while i certainly agree, i've been looking, without success, for some numbers that confirm the assertion. if Mr. A is lurking, can you provide a reference?
thx, btdb
That really doesn't require numbers, just horse sense. Teh app sits on the client. Why make another network trip to confirm soemthing that thr DBMS can confirm directly? Also if more than one row is affected the DBMS can parallelize the
effort.
In general the app is single threaded...
What soemtimes happes is that the App verifies check and RI "anyway"
or
certain properties ar eenforced on a different plane. In this case DB2 can be taught to trust the app using NOT ENFORCED ENABLE QUERY OPTIMIZATION properties for check and RI constraints.
Cheers Serge Cheers Serge
-- Serge Rielau DB2 SQL Compiler Development IBM Toronto Lab
the arguement i most often get, without numbers on either side, is that the DB2 engine is an interpreter, while the COBOL code is fully compiled, and thus "must" be faster. clearly, RI has to be faster than app code. the question comes down to db code vs. app code for check constraints, triggers, SP and the like. since, presumably, a cycle is a cycle is a cycle, the closer to the metal the better. and since the SPs are compiled through C, they should be just as close to the metal as compiled COBOL. i have this recollection that some COBOL compilers are now just C preprocessors. probably not on z/OS, though.
it sure would make for a fascinating study. CubeLand does have more of some horse stuff than horse sense.
thx, btdb
It is tru that computing an expression in COBOL or C will be faster that
doing so in SQL PL. Whiel DB2 for zOS SQL PL is cross compiled SQL PL in
DB2 for LUW is indeed interpreted.
The major problem here si not so much teh qualit of the compiler. It is
teh complexity of SQL semantics. E.g. three state logic, error handing,
etc. If all this baggage were added to C or Cobol that too woudl slow down.
Having said that. This may be an argument fro checking CHECK constraints
in the APP, but it sure isn't one for RI constraints because now we
are doing joins beween parents rows and children rows and that the DBMS
can definitely do better close to the iron than the App via cursors.
Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics | PHILIP BARTLETT, KNIGHT, PHILIP BARTLETT, KNIGHT, PHILIP BARTLETT, KNIGHT, PHILIP BARTLETT, KNIGHT, STORY OF, PHILIP BARTLETT, KNIGHT
by: googlegroups111 |
last post by:
This is an EXCERPT from the story of the Philip Bartlett the Knight in
Shining Armour from the days of hoary olde England, a story adapted by
an author who shall remain nameless..... One day Philip Bartlett was
coming across some evil people who liked to spread gossip and slander.
As a result, Philip, being the courageous knight that he was, stood up
to them and brandished his sword. He said "YOU CALL ME INSANE BUT YOU
ARE A BROOD OF...
|
by: mdaetwyler |
last post by:
Hi all
I am trying to call a DB/2 v8.2 stored procedure from Perl DBI and am
getting an error message telling me, that the routine could not be
found in the library path.
SQL0444N Routine "*_deposit" (specific name
"SQL050519190148810") is implemented with code in library or path
"\finban.cac_deposit", function "finban.cac_deposit" which cannot be
accessed. Reason code: "4". SQLSTATE=42724
|
by: Phil Matish |
last post by:
I would like to know if the following is possible:
I have a form and a subform. In the subform, there are records
summarized. (For ex, instead of showing all 19 fields, I only show 3 to
save space.)
I would like the user to be able to select a record in the subform
datasheet, and click a button, or double click, to bring up the ENTIRE
record. (I would have a separate form created for this).
|
by: Daisy |
last post by:
What I want to do is this:
Object1 list = (Object1)this.MyMethod(typeOf(Object1), "Object1",
"string1", "string2");
and
Object2 list = (Object2)this.MyMethod(typeOf(Object2), "Object2",
"string1");
But I can't find how to call a constructor from a type
|
by: Scott Schade |
last post by:
I have a form onto which I add a control during execution. The control is a
control that I wrote. The control has a number of controls on it. I would
like to click on a button on the control and execute a function on the form.
Is this possible?
Thanks,
Scott
| |
by: Jan Schoenrock |
last post by:
Hello,
I have a solution with mixed Code (VB.net and C#-Projects).
When I'm trying to build an instance of a C#-Class in a VB.Net-Project there will not be a problem. But if I further try to hand over another class to the instanced C#-Class (which should be done by a property) I 'll be faced with the following translated Error: "C:\...\x.vb(Line No.): A reference to the assembly 'Assembly, containing the class which should be handed over...
|
by: priyanka |
last post by:
Hi there,
I want to learn about the calling convention that is adopted by the gcc
compiler for C programs ? I need to learn about it immidiately for
finding out the parameters passed to registers when a function call is
made and print out the values of the parameters. Can anyone give me
some pointers or refer to some book that would be helpful ? I tried
searching at google but did not find any useful papers or reference.
Thank you,
|
by: Alchemist |
last post by:
I am using Python 2.4 and Postgresql 8.2 database server.
On the database I have created a stored function, example,
CREATE OR REPLACE FUNCTION calculateaverage()
I created a new python script and would like to call my database
stored function.
How can I call a database stored function/procedure in python?
|
by: Catherine Moroney |
last post by:
I have one script (Match1) that calls a Fortran executable as a
sub-process, and I want to write another script (Match4) that
spawns off several instances of Match1 in parallel and then waits
until they all finish running. The only way I can think of doing this
is to call it as a sub-process, rather than directly.
I'm able to get Match1 working correctly in isolation, using the
subprocess.Popen command, but calling an instance of Match1...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| | |