Nikita Kornilov

Results 2 comments of Nikita Kornilov

Hi everyone! It seems that there's another way of building a query that is capable of filtering by associations (without partitions). Using OP's example, for getting 5 users with the...

In addition to the above, to limit the number of associations for _each_ include (@ephys's question) , `JOIN` in the main query needs a few adjustments. Instead of regular `LEFT...