pub async fn get_endpoint_stats_for_windows(
conn: &mut PgConnection,
window_secs: &[i64],
) -> ModelResult<Vec<SuotarEndpointStatsForWindow>>Expand description
One scan of the table joined against the window list, so several windows cost one pass rather
than one full pass each. A single window is just a one-element window_secs.