Skip to content

Commit 92de285

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 0d3308f commit 92de285

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
@@ -88,6 +88,7 @@ class AccessListStore(Base):
8888
f'{DOCUMENTS_TABLE_NAME}.source_id',
8989
ondelete='CASCADE',
9090
),
91+
index=True,
9192
)
9293

9394
__table_args__ = (

0 commit comments

Comments
 (0)