Walk me through how you would optimize a slow-running query in a large production database at ISS STOXX.