vo.executeQuery() Executes Query Twice in the Database When View Object Created
(Doc ID 345144.1)
Last updated on AUGUST 05, 2016
Applies to:Oracle JDeveloper - Version 22.214.171.124.0 to 126.96.36.199.0 [Release AS10g to Oracle11g]
Information in this document applies to any platform.
***Checked for relevance on 25-Feb-2013***
Your application is using dynamic View Objects created by the method createViewObjectFromQueryStmt()
You note performance problems when executing the method executeQuery() (or other method that in turn executes executeQuery() method, eg first(), ...)
Setting up the BC4J trace (-Djbo.debugoutput=console) indicates that the SQL is executed twice:
and your DBA can confirm that the query is executed twice in the database:
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document
|Query is executed twice in the database|
|Query can take time in the database to execute|