performance - single join select vs. multiple simple selects

后端 未结 8 1571
逝去的感伤
逝去的感伤 2020-12-15 04:08

What is better as far as performance goes?

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 05:07

    If you are using SQL Server (I am not sure if this is available with other RDBMSs) I would suggest that you bundle an execution plan with you query results. This will give you the ability to see exactly how your query(s) are being executed and what is causing any bottlenecks.

    Until you know what SQL Server is actually doing I wouldn't hazard a guess about which query is better.

提交回复
热议问题