Quick Procedures
Johnson, Harold A EDUC:EX
Harold.A.Johnson at gov.bc.ca
Fri Dec 9 11:25:48 CST 2005
The first thing to do would be to check the access into the various
tables/views to see if there is any sequential access going on. Use
"$DEFINE RDMS$DEBUG_FLAGS SO" to setup the display, then run this process
and log the access display as it comes up on the screen. Look for
"sequential" or "[0:0]" which will indicate a problem.
Also, run the rdb monitor to check for locks "$RMU/SHOW STAT sql$database",
then use commands D, I, A to get to the lock screen.
good luck
-----Original Message-----
From: powerh-l-bounces+harold.a.johnson=gov.bc.ca at lists.sowder.com
[mailto:powerh-l-bounces+harold.a.johnson=gov.bc.ca at lists.sowder.com]On
Behalf Of John Stires
Sent: 2005 December 9 9:15 AM
To: powerh-l at lists.sowder.com
Subject: Quick Procedures
I am working on a rather complex screen. Those working on this screen
before me have pretty well disabled and/or misused all of the default
procedures so there is very little left to Powerhouse to handle on its own.
My question is this, there is a PUSH UPDATE in one of the designer
procedures. When this happens, does it automatically initial the PREUPDATE
first and then go to the UPDATE procedure or does it go straight to the
UPDATE procedure bypassing the PREUPDATE.\We are having big time response
problems with this program, a very good likely hood this is caused by
deadlocks. A user update to this screen is now 45 minutes to 1 1/2 hours.
Not very good.
All of the code that should be in the PREUPDATE procedure is currently
located in the UPDATE procedure. There are PUTs sprinkled through all of
this code making this a time consuming process. I ! am looking to reduce
the time spent in the UPDATE procedure by moving much of this code to the
PREUPDATE procedure. I am very sure there are many other things to be done
as well.
The second issue with this screen is how it handles the detail file updates.
The screen defines a cluster, but uses temp items, named after the fields in
the real record. The file statement looks like:
file OBLIGATION_TRANS in CARS_DB designer noitems need all &
transaction query for query, process &
transaction update for update
with the field statements looking like:
cluster at 19,1 occurs 5
field T_REMAIN_AMT &
label " " &
hidden nochange &
pic "^^^,^^^,^^^.^^" bwz signif 4
field T_POSTBACK_BALANCE &
upshift required &
values "Y","N"
field T_DTL_REASON_CODE &
hidden required upshift
field T_DTL_REASON_DESC &
display
field T_TRANS_AMT &
entry if T_POSTBACK_BALANCE = "N" &
pic "^^^,^^^,^^^.^^" bwz input scale 2 signif 4
cluster
In the UPDATE procedure, there is a FOR structure using 5 as its limit. The
users get "reasonable response time", 5 minutes, if they only enter up to 5
entries in these fields. When they enter more than 5, their response time
goes to over 45 minutes.
Needles to say I am under some serious pressure here to make some big
improvements.
We are running on VMS 6.2, Powerhouse vers! ion 7.10e6, and DEC RDB, I think
version 6.1.
Thanks for any good impute,
John Stires
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20051209/45e03a8b/attachment.htm
More information about the powerh-l
mailing list