Does Sql JOIN order affect performance?

后端 未结 6 506
忘掉有多难
忘掉有多难 2020-11-30 08:08

I was just tidying up some sql when I came across this query:

SELECT 
        jm.IMEI ,
        jm.MaxSpeedKM ,
              


        
6条回答
  •  抹茶落季
    2020-11-30 08:48

    Usually not. I'm not 100% this applies verbatim to Sql-Server, but in Postgres the query planner reserves the right to reorder the inner joins as it sees fit. The exception is when you reach a threshold beyond which it's too expensive to investigate changing their order.

提交回复
热议问题