Our great sponsors
-
activerecord-summarize
Transparently combine many reporting queries (on the same tables) into one fast query—even when queries have different groups or scopes.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
gemfile(true) do source "https://rubygems.org"
I made activerecord-summarize because this sort of reporting is something I end up needing over and over. From a reading, writing, and maintenance perspective, I like the way you just use normal ActiveRecord methods, and the shape of the data in the block is the shape of the data in the output. You can mostly write each part of the query as if it were the only thing you were querying.