If I understand your requirement correctly...
1- you have a large "students" table
2- you have to retrieve data related to 1,000 of them
Is that correct?

Either you...
1- list the 1,000 student_id's on your predicate, or
2- you find a different column that brings all of those students like the status of the student being active or something like that, or
3- you join students table with other tables that allow to filter the 1,000 desired students

Hard to tell 'cause we have no visibility of your environment.