Bug 23359

Summary: Problem with batch operations and indexing
Product: Koha Reporter: Vitor Fernandes <vitorfernandes87>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: ere.maijala, nick
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Vitor Fernandes 2019-07-23 09:09:04 UTC
Using ElasticSearch when you do a batch operation, like adding items or removing items, the record is reindexed every time that one item is changed (added or removed).

Operations with this problem:

- Add mutiple copies to one record
- Remove all record items
- Edit some or all record items

Test plan 1:

- Create a record
- Add mutiple copies to that record (1000 for example)
- Record will be at least reindexed 1000 times (one for each item)

Test plan 2:

- Create a record with mutiple copies (1000 for example)
- Remove all items
- Record will be at least reindexed 1000 times (one for each item)
Comment 1 Vitor Fernandes 2020-03-03 14:50:25 UTC
Bug #22417 could help with this problem.