You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
현재는 full scan을 할때 limit 1이 걸려있더라도 row를 전부 가져온 다음 마지막에야 필터 처리를 하고 있음
추후에는, join이나 별도 조건이 없을 경우엔 full scan 자체에서 limit을 걸어 불필요한 낭비를 줄일 필요 있음
select * from foo limit 1 // 무조건 하나만 스캔
select * from foo offset 5 limit 1 //6개만 스캔해도 될듯.
select * from foo order by a limit 1 //풀스캔 필요 (order by에 인덱스가 없을 경우에만)
select * from foo f inner join bar b as f.id = b.id limit 1 //풀스캔 필요
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: