Ruby on Rails Greatest-Per-Group Query in Rails Using a View Backed Model This is part 4 of 4 in a series on how to use Greatest Per Group queries in Ruby on Rails to avoid the N + 1 query problem: When and how to use Greatest Per Group queries (with PostgreSQL) Rails implementation using custom query
Ruby on Rails Greatest-Per-Group Query in Rails Using a Scoped has_one Assocation This is part 3 of 4 in a series on how to use Greatest Per Group queries in Ruby on Rails to avoid the N + 1 query problem: When and how to use Greatest Per Group queries (with PostgreSQL) Rails implementation using custom query
Ruby on Rails Greatest-Per-Group Query in Rails Using Custom Query Methods This is part 2 of 4 in a series on how to use Greatest Per Group queries in Ruby on Rails to avoid the N + 1 query problem: When and how to use Greatest Per Group queries (with PostgreSQL) Rails implementation using custom query
Ruby on Rails Greatest-Per-Group Query in PostgreSQL Using DISTINCT ON This is part 1 of 4 in a series on how to use Greatest Per Group queries in Ruby on Rails to avoid the N + 1 query problem: When and how to use Greatest Per Group queries (with PostgreSQL) Rails implementation using custom query