[midPoint-git] [Evolveum/midpoint] 624a07: Eliminate superfluous "get shadow" operations

mederly noreply at github.com
Sat Feb 28 03:02:32 CET 2026


  Branch: refs/heads/support-4.10
  Home:   https://github.com/Evolveum/midpoint
  Commit: 624a076e24dacad7f864825e179a1e2f9b9237d4
      https://github.com/Evolveum/midpoint/commit/624a076e24dacad7f864825e179a1e2f9b9237d4
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2026-02-28 (Sat, 28 Feb 2026)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/ProjectionUpdateOperation.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/ProjectionsLoadOperation.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/associations/TestAssociations.java
    A model/model-intest/src/test/resources/associations/resource-dummy-ad-cached.xml
    M model/model-intest/src/test/resources/associations/system-configuration.xml

  Log Message:
  -----------
  Eliminate superfluous "get shadow" operations

This commit eliminates superfluous reading of shadows from the repo
when shadow caching is fully enabled. In a scenario with outbound
mappings it reduced the number of read operations from 6 to 3
(two "get", one "search").

It is important because for scenarios with accounts having hundreds
of reference values, each "get" operation translates to hundreds of
low-level repository "get" operations for the shadows.

Work in progress: to be thoroughly tested.

Related to MID-11115.

(cherry picked from commit 5706ccec29cf5c113c96f492d0dd0d2705c6540b)


  Commit: fabb615ad21852a8c92f340a43213f16ea34bbb6
      https://github.com/Evolveum/midpoint/commit/fabb615ad21852a8c92f340a43213f16ea34bbb6
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2026-02-28 (Sat, 28 Feb 2026)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ModelController.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestConsistencySimple.java

  Log Message:
  -----------
  Fix failing tests after optimizing "get" ops

1. This commit adapts TestConsistencySimple to recent changes in
projection loading logic.

2. It also fixes the ModelController#executeRecompute method, so
that it treats raw shadows that could come from the Trigger
Scanner or other means.

Why: The changes are necessary because optimizing out some of the
"get repo shadow" operations in the Projector lead to situations
where shadows were not adequately prepared to be used in the
Clockwork.

Related to MID-11115.


Compare: https://github.com/Evolveum/midpoint/compare/40904e44d2c2...fabb615ad218

To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list