Skip to content

Commit b0af445

Browse files
committed
fix(pgvector): make doc deletion query faster
index the source_id column in the access_list table Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent 15a9922 commit b0af445

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

context_chat_backend/vectordb/pgvector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class AccessListStore(Base):
7979
f'{DOCUMENTS_TABLE_NAME}.source_id',
8080
ondelete='CASCADE',
8181
),
82+
index=True,
8283
)
8384

8485
__table_args__ = (

0 commit comments

Comments
 (0)