Issue #2294477 by neeravbm, mikeytown2: Optimize MySQL query to get files that belong inside of an aggregate.