Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3638] Avoid hitting the DB in the common case in getOrCreateECEP #3643

Closed
wants to merge 1 commit into from

Conversation

pcdavid
Copy link
Member

@pcdavid pcdavid commented Jun 18, 2024

On a simple scenario where a diagram is opened and the user clicks in the background to open the palette.

Before: 5 calls to the database, 2 via EditingContextSearchService.existsById

Capture d’écran du 2024-08-23 10-36-43

After: down to 3 calls.

Capture d’écran du 2024-08-23 10-35-32

@pcdavid pcdavid force-pushed the pcd/opt/getOrCreateECEP branch from 3973da5 to c60ba0f Compare August 23, 2024 08:37
@pcdavid pcdavid closed this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getOrCreateEditingContextEventProcessor hits the database on every invocation
1 participant