mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-23 12:58:18 -05:00
Use partial reindex for bulk updates
This commit is contained in:
parent
62fd722019
commit
3d1ed671fa
@ -245,8 +245,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…
x
Reference in New Issue
Block a user