sql server query running slow from java

前端 未结 13 1955
渐次进展
渐次进展 2020-12-05 12:21

I have a java program that runs a bunch of queries against an sql server database. The first of these, which queries against a view returns about 750k records. I can run t

13条回答
  •  爱一瞬间的悲伤
    2020-12-05 13:00

    Does it take a similar amount of time with SQLWB? If the Java version is much slower, then I would check a couple of things:

    1. You shoudl get the best performance with a forward-only, read-only ResultSet.
    2. I recall that the older JDBC drivers from MSFT were slow. Make sure you are using the latest-n-greatest. I think there is a generic SQL Server one and one specifically for SQL 2005.

提交回复
热议问题