faster schedule query