Skip to content

Commit ad2808f

Browse files
committed
fix(qdrant): skip upserting points if there's nothing to upsert
1 parent b1a2939 commit ad2808f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ops/storages/qdrant.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ impl ExportContext {
7070
points.push(PointStruct::new(point_id, vectors, payload));
7171
}
7272

73-
self.client
74-
.upsert_points(UpsertPointsBuilder::new(&self.collection_name, points).wait(true))
75-
.await?;
73+
if !points.is_empty() {
74+
self.client
75+
.upsert_points(UpsertPointsBuilder::new(&self.collection_name, points).wait(true))
76+
.await?;
77+
}
7678

7779
let ids = mutation
7880
.delete_keys

0 commit comments

Comments
 (0)