Use partial reindex for bulk updates

This commit is contained in:
shamoon 2025-04-28 14:05:57 -07:00
parent 6111a42c9d
commit 6b4df8cf2c
No known key found for this signature in database

View File

@ -248,8 +248,10 @@ def bulk_update_documents(document_ids):
ai_config = AIConfig() ai_config = AIConfig()
if ai_config.llm_index_enabled(): if ai_config.llm_index_enabled():
for doc in documents: update_llm_index(
llm_index_add_or_update_document() progress_bar_disable=True,
rebuild=False,
)
@shared_task @shared_task