fix: empty delete bug (#12339)

Co-authored-by: huangzhuo <huangzhuo1@xiaomi.com>
This commit is contained in:
huangzhuo1949 2025-01-03 20:46:39 +08:00 • committed by GitHub
commit 70698024f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 19 additions and 0 deletions

View file

@ -140,6 +140,8 @@ class TencentVector(BaseVector):
return False
def delete_by_ids(self, ids: list[str]) -> None:
if not ids:
return
self._db.collection(self._collection_name).delete(document_ids=ids)
def delete_by_metadata_field(self, key: str, value: str) -> None: