Re:LiteFS
by 0x457 on Wednesday September 21, 2022 @02:05PM
(#32928864)
Most common place I saw N+1 is ActiveRecord (Ruby on Rails).
Because by default, no relationships are loaded and the way AR "loads" stuff makes is extremely easy to create N+M queries on 5 lines of ruby. Then, those people will tell you that you run out of database before you run out of ruby...
Because by default, no relationships are loaded and the way AR "loads" stuff makes is extremely easy to create N+M queries on 5 lines of ruby. Then, those people will tell you that you run out of database before you run out of ruby...