I want to know what is faster, assuming I have the following queries and they retrieve the same data
(我想知道更快,假设我有以下查询,并且它们检索相同的数据)
select * from tableA a inner join tableB b on a.id = b.id where b.columnX = value
or
(要么)
select * from tableA inner join (select * from tableB where b.columnX = value) b on a.id = b.id
I think makes sense to reduce the dataset from tableB in advanced, but I dont find anything to backup my perception.
(我认为在高级情况下减少来自tableB的数据集是有意义的,但是我没有发现任何东西可以支持我的看法。)
ask by André De La O Campos translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…