SQL Efficiency: WHERE IN Subquery vs. JOIN then GROUP

后端 未结 7 1766
予麋鹿
予麋鹿 2021-02-07 09:35

As an example, I want to get the list of all items with certain tags applied to them. I could do either of the following:

SELECT Item.ID, Item.Name
FROM Item
WH         


        
7条回答
  •  天命终不由人
    2021-02-07 10:09

    It's pretty much impossible (unless you're one of those crazy guru DBAs) to tell what will be fast and what won't without looking at the execution plan and/or running some stress tests.

提交回复
热议问题