Bug 23359

Summary: Problem with batch operations
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: ---
Who signed the patch off: 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)