You need to write a select query statement to read 10 records at a time.
or
Create Procedure in Data base and call the procedure from sender chanel and Procedure logic is read only 10 records at a time.
But sometimes you may face consitency issues while updating flag .