Another optimization find from 🤖: apparently `Post.where(…).first` is 50% slowe...
Kuba Suder • @mackuba.eu on 🦋 @mackuba@martianbase.net
Another optimization find from 🤖: apparently `Post.where(…).first` is 50% slower than `Post.find_by(…)`, because how ActiveRecord internals work, and this is called a lot in the firehose processing loop (to look up thread roots, quote post targets, and posts being deleted) 🤔 #ruby