简体   繁体   中英

Longer Execution time for a query in toplink

I Have a query that is assigned to this variable FILE_DETAILS in below piece of code, when this query is executed in SQLDeveloper/toad its getting executed faster, but when used in toplink or jdbc its taking a lot of execution time. What could be the possible reason for the longer execution time?

List resultSet = (List) toplinkMgr
                .readDataQuery(Constants.FILE_DETAILS,
                        arguments, values);

No DBA will help you unless you provide the query and the execution plan(s). Firrst of all compere execution plan for the query in Toad against the one executed from Toplink. See definition for the Oracle view V$SQL_PLAN, there you will find exec plan for currently running query.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM