KNN: flush every record and indicate when it was done