Hi All,
I hava a problem about speed of database enquiry.
Problem:
It's a B/S application. Now I hava a database enquiry.
The statement stmt.executeQuery(sSQL) used long time(about 30s). The
return result have about 500 rows. If I copy the SQL to database
utilities to run it, itruns very fast(about 1-2s), why?? In another
function it also use stmt.executeQuery(sSQL)(returns about 500 rows),
it runs fast, so I dont think the reason is network between client,
database, server.
Could any one tell me why?? And how to change this
situation??
Thx for you suggestion!
joeNOSPAM@BEA.com - 07 Nov 2007 16:17 GMT
> Hi All,
>
[quoted text clipped - 11 lines]
> situation??
> Thx for you suggestion!
Are you using a PreparedStatement? What JDBC driver and DBMS are you
using?
Joe Weinstein at BEA Systems