Skip to main content

Overview

All benchmark data is computed from live PostgreSQL aggregation queries against the nil_deals table. No hardcoded values, no fake data.

Three Comparison Scopes

Core Aggregation Helper

The _agg() function runs a single SQL query with all filters applied:
This helper is called 3 times (school, conference, peer) for every benchmark request.

Percentile Calculations

The grid endpoint uses PostgreSQL’s native percentile_cont() function:
These are computed on per-athlete totals (SUM of all deals for each athlete), not on individual deal values.

Filter Support

Every endpoint accepts and respects these filters: All filters apply to all three scopes (school, conference, peer) simultaneously.

Data Anonymization

Per the product spec, benchmarks anonymize cross-institution data:
  • Conference and peer data show only aggregated statistics (AVG, SUM, percentiles)
  • Individual university names, athlete names, and deal details are never exposed in benchmark responses
  • Only the user’s own school data is identifiable