Home » RDBMS Server » Performance Tuning » need help to speed up data loading in form (8.0.6, forms 4.5, win 2003 server)
need help to speed up data loading in form [message #456151] Sat, 15 May 2010 03:44 Go to next message
ateeqrahman786
Messages: 52
Registered: December 2009
Location: Hyderabad,India
Member
Hi,

Database:8.0.6
Forms:4.5
OS:windows server 2003


I am using a hospital management application. when i open the appointment form, it takes some time to load the data. Please tell me how to proceed to find the problem.I am using Toad to trace the session.


1)How do i find the tables involved in the form.
2)i am using a client machine.So do i need any permissions to access tkprof and change some settings?

I have attached a tkprof report which was traced in Toad.
Thank You,
Re: need help to speed up data loading in form [message #456168 is a reply to message #456151] Sat, 15 May 2010 07:48 Go to previous message
rleishman
Messages: 3728
Registered: October 2005
Location: Melbourne, Australia
Senior Member
Looks to me like this is your problem query (26 out of 30 sec)

SELECT PT_CODE,BUS_UNIT,TOP_BRASS_YN,ROOM_CLASS_CODE,WARD_CODE,
  ADMIT_STATUS_FLAG,PT_ADMIT_DATE,PT_ADMIT_TIME,MD_CODE,REQUEST_NO,REG_NO,
  INP_REG_NO,MOTHER_PT_CODE,CRE_NOTES,PT_DIAGNOSIS_NOTE,
  TMP_CLINIC_DISCHARGE_DATE,ROOM_CODE,BED_CODE,ROWID 
FROM
 A_INP_PATIENTS_ADMT WHERE bus_unit = :1 and admit_status_flag = 'C' and 
  nvl(clinical_discharge_yn,'N') not in ('Y','C') and (ward_code = :2 or :3 = 
  '007')  order by room_code


call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.00       0.03          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        4      0.14      26.61       2306      47604          0          33
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        6      0.14      26.64       2306      47604          0          33


You could try creating a function-based index on
A_INP_PATIENTS_ADMT(bus_unit, admit_status_flag, nvl(clinical_discharge_yn,'N'), ward_code)


Ross Leishman
Previous Topic: Sql Trace and tkprof
Next Topic: need help with rewriting the query
Goto Forum:
  


Current Time: Mon May 13 00:24:25 CDT 2024