hi @Xiang Fu so I did an upsert into the database and as it doesnt take those rows as its primary key enabled.
tho the total no of docs scanned vs total docs has a difference its mainly due to upsert record which are duplicate and marked as tombstone in the database.
when till these records get flushed and when the total records scanned will be equal to totalDocs