1000 samples is written in batch