Reduce the number of queries when sending alerts by 33%


Well-known member
I’d also note that that list of queries references two different users, so from that sample, you’re talking +2 not +3 queries.

Likely the code that is calling this could be rethought since it probably doesn’t need to call “get me everything for user 487101” then “get me everything for user 487102” but “get me everything for users 487101 and 487102” but as Stuart was hinting at, proper benchmarking will help.