Skip to content

Commit

Permalink
fix: replace vectors_count with count api (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Apr 16, 2024
1 parent cbefb5a commit c6322f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qdrant_client/migrate/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def _migrate_collection(
collection_name, offset=next_offset, limit=batch_size, with_vectors=True
)
dest_client.upload_points(collection_name, records, wait=True) # type: ignore
source_client_vectors_count = source_client.get_collection(collection_name).vectors_count
dest_client_vectors_count = dest_client.get_collection(collection_name).vectors_count
source_client_vectors_count = source_client.count(collection_name).count
dest_client_vectors_count = dest_client.count(collection_name).count
assert (
source_client_vectors_count == dest_client_vectors_count
), f"Migration failed, vectors count are not equal: source vector count {source_client_vectors_count}, dest vector count {dest_client_vectors_count}"

0 comments on commit c6322f0

Please sign in to comment.