How would you optimize a query that is running slowly on a massive hardware telemetry table at Qualcomm?