camunda / issues

4 stars 0 forks source link

Evaluate better approach for resolving owner/lastModifier metadata when user does not exist #732

Closed engineering-issue-sync-app[bot] closed 2 months ago

engineering-issue-sync-app[bot] commented 2 months ago

Note: waiting for confirmation of issue before moving forward. Will update ticket then.

Context

In a recent support ticket, a customer was experiencing a very long loading time for /entities. This customer has a lot of entities and muplitple engines connected to Optimize. After investigation we determined that the cause for this delay was the resolving of owner and lastModifier ID to userName done in EntityRestMapper.prepareRestResponse in connection with a recently deleted user. Because the user did not exist in the cache, Optimize queried each engine for the existence of this user every time the entities page was loaded, for every entity this user is owner/lastModifier of.

We should evaluate a solution to this issue. Potential options are:

Or some better compromise.

ATs

Testing Notes

This issue is hard to reproduce. Testing steps will depend on the implemneted solution --- update once decision made.

Links

### Pull Requests

:robot: This issue is automatically synced from: source

PHWaechtler commented 2 months ago

Duplicate of 731