[midPoint-git] [Evolveum/midpoint] d1c3a0: Use R/O option when resolving names for audit

mederly noreply at github.com
Tue Jan 28 09:51:16 CET 2025


  Branch: refs/heads/support-4.9
  Home:   https://github.com/Evolveum/midpoint
  Commit: d1c3a0c2e863cfffea13eecf158af63c351a3735
      https://github.com/Evolveum/midpoint/commit/d1c3a0c2e863cfffea13eecf158af63c351a3735
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2025-01-28 (Tue, 28 Jan 2025)

  Changed paths:
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/resourceobjects/ShadowAuditHelper.java
    M repo/system-init/src/main/java/com/evolveum/midpoint/init/AuditServiceProxy.java

  Log Message:
  -----------
  Use R/O option when resolving names for audit

Using read-only "get" option eliminates object cloning when retrieving
the object from the cache. Improves provisioning pre-processing
for new shadows (audited) by ~5%.

Temporary solution! It may slightly worse the performance when names
are resolved from real repo (not from cache). We should implement
something more advanced, like custom name resolver provided by the
repo.


  Commit: 996a300ccc534f35a61bf6a5d29c644705db6210
      https://github.com/Evolveum/midpoint/commit/996a300ccc534f35a61bf6a5d29c644705db6210
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2025-01-28 (Tue, 28 Jan 2025)

  Changed paths:
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/AbstractLazilyInitializableShadowedEntity.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/AssociationsHelper.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/ShadowAcquisition.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/ShadowPostProcessor.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/ShadowedChange.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/ShadowFinder.java

  Log Message:
  -----------
  Avoid extra SQL access for embedded shadows

Embedded shadows (used for associations and reference attributes)
do not need "operationExecution" information. So, we exclude it
from the respective repo search operations.

(The back side is that the repository cache is avoided. But we assume
that shadows are usually not cached anyway.)

This should improve performance of provisioning "get" and "search"
operations when many entitlements are present.


Compare: https://github.com/Evolveum/midpoint/compare/038a0292e2a7...996a300ccc53

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