mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-07 19:08:32 -05:00
Use partial reindex for bulk updates
This commit is contained in:
@@ -248,8 +248,10 @@ def bulk_update_documents(document_ids):
|
||||
|
||||
ai_config = AIConfig()
|
||||
if ai_config.llm_index_enabled():
|
||||
for doc in documents:
|
||||
llm_index_add_or_update_document()
|
||||
update_llm_index(
|
||||
progress_bar_disable=True,
|
||||
rebuild=False,
|
||||
)
|
||||
|
||||
|
||||
@shared_task
|
||||
|
Reference in New Issue
Block a user