prevent infinite loop if there are more duplicate property_key values than batch_size by excluding seen ids
prevent infinite loop if there are more duplicate property_key values than batch_size by excluding seen ids

ericcj/ar-find-in-batches-with-order,nambrot/ar-find-in-batches-with-order