SQL Vs Oracle Forms Performance issue [message #678399] |
Sat, 30 November 2019 04:59  |
 |
bluetooth420
Messages: 146 Registered: November 2011
|
Senior Member |
|
|
Hello,
A simple query is giving result in few seconds while same query is giving result in Oracle Forms in 20 seconds. (The query is being used in when validate item in order to populate the balance).
Here are are the both codes.
in SQL
SQL> select balance from v2cust where ccode=153;
BALANCE
----------
.8792
in Oracle Froms
message(2.1); pause;
Select balance
into :block1.d_ob
from v2cust
where ccode = :block1.ccode;
message(2.2); pause;
What am i missing?
Kindly help
|
|
|
Re: SQL Vs Oracle Forms Performance issue [message #678403 is a reply to message #678399] |
Sat, 30 November 2019 11:26   |
John Watson
Messages: 8879 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I am not any sort of Forms expert, but....
You may be getting different execution plans because of (what looks like) the bind variables that Forms uses. Can you put the two statements through EXPLAIN PLAN to check?
Also, put this through EXPLAIN PLAN,
select balance from v2cust where ccode=:var;
[Updated on: Sat, 30 November 2019 11:28] Report message to a moderator
|
|
|
|
|
|
|