implement bulk_size for reindex