PeriodicCalculations

Build Status Code Climate Coverage Status Gem Version

Periodic Calculations gem allows you to retrieve periodic results of aggregates that can be accumulated over time with PostgreSQL. The results are returned in real time (there are no scheduled precalculations).

The returned data is ready to be displayed in a graph, for example, using the jQuery Flot library.

Demo

Please check out the demo to see it in action.

How does it work

It takes advantage of the window_functions to be able to generate accumulated metrics over time.