Join GitHub today
Removing n+1 queries in discipline dashboard #2375
Who is this PR for?
What problem does this PR fix?
Discipline data loads slowly as a result of some inefficient queries
What does this PR do?
improves the queries for discipline dashboard data to speed up load time
Which features or pages does this PR touch?
Does this PR use tests to help verify we can deploy these changes quickly and confidently?
@kevinrobinson frankly I thought this had been done way back when the discipline stuff first went out. Oversight on my part. Locally this improved load times quite a bit, but it would be good to see how big a difference it makes in production.