optimized quotes index query using eager loading and select parameters