【发布时间】:2016-12-06 10:38:03
【问题描述】:
我已附上我的查询结果。我怎样才能优化这个sp?我还需要优化吗?我可以得到 0.2 或在某些情况下更多的结果。
Client Execution Time 18:18:18 18:18:08 18:17:49 18:17:24 18:13:18
Query Profile Statistics
Number of INSERT, DELETE and UPDATE statements 281 281 281 50 0 178.6000
Rows affected by INSERT, DELETE, or UPDATE statements 235 235 235 44 0 149.8000
Number of SELECT statements 4870 4870 4870 741 13 3072.8000
Rows returned by SELECT statements 3653 3653 3653 598 37 2318.8000
Number of transactions 281 281 281 50 0 178.6000
Network Statistics
Number of server roundtrips 1 1 1 3 3 1.8000
TDS packets sent from client 1 1 1 3 3 1.8000
TDS packets received from server 119 110 90 898 78 259.0000
Bytes sent from client 138 138 138 284 288 197.2000
Bytes received from server 327491 327491 327491 2861601 197860 808386.8000
Time Statistics
Client processing time 2755 3793 2364 908 332 2030.4000
Total execution time 3225 4294 2825 2095 1375 2762.8000
Wait time on server replies 470 501 461 1187 1043 732.4000
【问题讨论】:
-
几乎不可能仅仅因为你没有展示任何代码就对你的代码进行优化。这里没有心灵感应者。
-
@AndyKorneyev 我同意你的看法......从他提供的内容中也很难指出确切的方向。
-
你应该在这里添加更多解释我认为..!
标签: sql stored-procedures optimization