Optimized top-N-per-group Active Record associations using lateral joins
14-Sep-2024 414
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 #Optimized #top-N-per-group #Active #Record #associations #using #lateral #joins #active #record https://rubyonrails.ba/link/optimized-top-n-per-group-active-record-associations-using-lateral-joins