简体   繁体   English

toplink中查询的执行时间更长

[英]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. 我在下面的代码段中有一个分配给此变量FILE_DETAILS的查询,当此查询在SQLDeveloper / toad中执行时,它的执行速度更快,但是在toplink或jdbc中使用时,它需要大量的执行时间。 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). 除非您提供查询和执行计划,否则任何DBA都不会帮助您。 Firrst of all compere execution plan for the query in Toad against the one executed from Toplink. Toad中查询的所有完全执行计划的第一项,相对于Toplink执行的计划的第一项。 See definition for the Oracle view V$SQL_PLAN, there you will find exec plan for currently running query. 请参见Oracle视图V $ SQL_PLAN的定义,在那里您将找到当前正在运行的查询的执行计划。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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