Stored proc running 30% slower through Java versus running directly on database

后端 未结 8 1047
逝去的感伤
逝去的感伤 2021-02-08 14:10

I\'m using Java 1.6, JTDS 1.2.2 (also just tried 1.2.4 to no avail) and SQL Server 2005 to create a CallableStatement to run a stored procedure (with no parameters). I am seein

相关标签:
8条回答
  • 2021-02-08 14:39

    If you are looking at the profiler and there is no difference between the executions then the difference must be with the client systems.

    4 mins does seem like to long just to prepare a statement to send so the 12 min wait must cause some other effect -- no idea what it is.

    0 讨论(0)
  • 2021-02-08 14:43

    Does the Java case include transmission of the results to the Java server (network overhead) plus some Java processing? A 12 minute query might produce quite a large amount of data.

    0 讨论(0)
提交回复
热议问题