Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / October 2005

Tip: Looking for answers? Try searching our database.

Edit routine & access path

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joey Jackson - 27 Oct 2005 01:38 GMT
Hello:

How does DB2 on s/390 resolve the access if the table its trying to
access has an edit routine? Will it ever use indexes before invoking
the edit routine when a select statement is executed? Under what all
conditions will it not use any of the indexes available to it

regards

Joey
Rhino - 29 Oct 2005 22:26 GMT
> Hello:
>
> How does DB2 on s/390 resolve the access if the table its trying to
> access has an edit routine? Will it ever use indexes before invoking
> the edit routine when a select statement is executed? Under what all
> conditions will it not use any of the indexes available to it

When you say "edit routines", do you mean FIELDPROCs, EDITPROCs, and
VALIDPROCs? If so, I'm surprised to see anyone still use those things. I'm
not sure they ever got much use and there is probably even less reason to
use them now that constraints, UDFs, etc. are present and relatively
powerful.

If I remember correctly, the fieldproc/editproc/validproc family all had to
be written in Assembler, making them fairly awkward to maintain, especially
if you didn't have a good Assembler programmer in your shop. That was the
main reason they didn't get a lot of use, at least among the people I knew
who were running DB2. As a result, you probably won't find many people who
know the effect of these procs on DB2 performance; you'll probably have to
set up a bunch of test cases and do your own explains to find out what they
do to index selection.

If that is NOT what you mean by "edit routines", what DO you mean?

Rhino
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.