Optimized top-N-per-group Active Record associations using lateral joins

This gem is only compatible with databases that offer LATERAL joins within Active Record. As far as I'm aware, that is only Postgres.This gem is not necessary on SQLite, as SQLite will perform lateral-like behavior on join queries by default. MySQL has support for lateral queries, but they are not yet implemented in Active Record.Really complex queries may not work.
Optimized top-N-per-group Active Record associations using lateral joins #ruby #rubydeveloper #rubyonrails #active #record https://rubyonrails.ba/single/optimized-top-n-per-group-active-record-associations-using-lateral-joins

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles