qdrant_client.migrate.migrate module¶
- migrate(source_client: QdrantBase, dest_client: QdrantBase, collection_names: Optional[List[str]] = None, recreate_on_collision: bool = False, batch_size: int = 100) None [source]¶
Migrate collections from source client to destination client
- Parameters
source_client (QdrantBase) – Source client
dest_client (QdrantBase) – Destination client
collection_names (list[str], optional) – List of collection names to migrate. If None - migrate all source client collections. Defaults to None.
recreate_on_collision (bool, optional) – If True - recreate collection if it exists, otherwise raise ValueError.
batch_size (int, optional) – Batch size for scrolling and uploading vectors. Defaults to 100.
- upload_with_retry(client: QdrantBase, collection_name: str, points: Iterable[PointStruct], max_attempts: int = 3, pause: float = 3.0) None [source]¶