diff --git a/qdrant_client/migrate/migrate.py b/qdrant_client/migrate/migrate.py index b24f88ce..c5f8cfd7 100644 --- a/qdrant_client/migrate/migrate.py +++ b/qdrant_client/migrate/migrate.py @@ -125,6 +125,7 @@ def _recreate_collection( optimizers_config=models.OptimizersConfigDiff(**to_dict(src_config.optimizer_config)), wal_config=models.WalConfigDiff(**to_dict(src_config.wal_config)), quantization_config=src_config.quantization_config, + strict_mode_config=src_config.strict_mode_config, ) _recreate_payload_schema(dest_client, collection_name, src_payload_schema) diff --git a/tests/test_migrate.py b/tests/test_migrate.py index 355cf954..267f1607 100644 --- a/tests/test_migrate.py +++ b/tests/test_migrate.py @@ -478,7 +478,9 @@ def test_recreate_collection(remote_client: QdrantClient): compression=models.CompressionRatio.X4, always_ram=False ) ) - + strict_mode_config = models.StrictModeConfig( + read_rate_limit=1000000 + ) remote_client.create_collection( collection_name, vectors_config=vectors_config, @@ -490,6 +492,7 @@ def test_recreate_collection(remote_client: QdrantClient): optimizers_config=optimizers_config, wal_config=wal_config, quantization_config=general_quantization_config, + strict_mode_config=strict_mode_config ) remote_client.create_payload_index(