optimize the film controller query