Rails Dashboards that scale – with SQL and dry-struct

While we can piece together Reports and Dashboards using ActiveRecord, it can be more efficient to use SQL to transform data and dry-struct to turn query results into Ruby objects with strong typing. Why Not ActiveRecord? ActiveRecord is a great ORM for typical CRUD operations. While it offers a handful of methods to aggregate data such as .group , .sum , and .joins , they are not sufficient for…