mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-08 06:26:08 +01:00
Use partial reindex for bulk updates
This commit is contained in:
parent
559caf72c2
commit
13ab148c7e
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue