DC21-73: Reduce SQL queries in index haml