Home » Developer & Programmer » Forms » Post_Query causes low speed in retrieve data (Oracle form 6i)
Post_Query causes low speed in retrieve data [message #536898] Fri, 23 December 2011 14:50 Go to next message
HM75
Messages: 9
Registered: April 2008
Junior Member
I have single datablock inside my form. It is including of some fields related to the X table, also there are some other fields which are related to the other tables.I have set the property of those field in to the non database.I use post_query in order to get data for those mentioned non data base tables.
in post_query I wrote some queries by required tables except X table.for example :

- select a into (my nondatabase field)from Y where Y.Yb = X.Xb
- select d into (my another nondatabase field)from Z where Z.Zb = X.Xb


by using this triger, the speed of retrieving data in my form became very low!
What's your solution?
Re: Post_Query causes low speed in retrieve data [message #536904 is a reply to message #536898] Fri, 23 December 2011 15:25 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Are these columns properly indexed?
Re: Post_Query causes low speed in retrieve data [message #536917 is a reply to message #536904] Fri, 23 December 2011 23:55 Go to previous messageGo to next message
HM75
Messages: 9
Registered: April 2008
Junior Member
No , They are not indexed!
Sorry , I mentioned the wrong trigger which I use , I use post_changed.
Re: Post_Query causes low speed in retrieve data [message #536936 is a reply to message #536917] Sat, 24 December 2011 03:53 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
What happens if you create indexes and gather statistics? Any improvement?

POST-CHANGE is, if I'm not wrong, there for backward compatibility. I'd suggest you to switch to POST-QUERY (while fetching data from the database) and WHEN-VALIDATE-ITEM (for newly added values).
Re: Post_Query causes low speed in retrieve data [message #536961 is a reply to message #536936] Sat, 24 December 2011 23:54 Go to previous message
HM75
Messages: 9
Registered: April 2008
Junior Member
Thanks , post_query improved the speed.
Previous Topic: show icons in forms 6i
Next Topic: Dear i want that when a user change or delete any record or row in forms data automatically move to
Goto Forum:
  


Current Time: Thu Jul 25 23:42:21 CDT 2024