Fixed
Details
Assignee
Yoann RodièreYoann RodièreReporter
Yoann RodièreYoann RodièreComponents
Sprint
NoneFix versions
Priority
Major
Details
Details
Assignee
Yoann Rodière
Yoann RodièreReporter
Yoann Rodière
Yoann RodièreComponents
Sprint
None
Fix versions
Priority
Created January 18, 2021 at 2:02 PM
Updated February 8, 2021 at 4:44 PM
Resolved January 19, 2021 at 11:12 AM
We have this code in
PojoIndexedTypeIndexingPlan
:The
if
condition is presumably only there for performance, but:I doubt it improves performance by a lot, since
getState( identifier ).updateBecauseOfContained( entitySupplier );
doesn't do much when the state already exists.I believe it's wrong. If we create a state for some benign change (such as an update to a property that is not indexed), and then end up in this method because a contained entity has changed, then we will skip reindexing.
We should:
Add a test for this.
Remove the
if
to fix the problem.Maybe, in a follow-up ticket, prevent the creation of a state for updates that are not relevant to indexing?