Reading large numbers of records little by little