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

misc: Avoid reloading charge filter if already loaded #2742

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

vincent-pochet
Copy link
Collaborator

Context

This PR is related to #2678.
The charge filter lookup that was added in the Events::PostProcessService lead to some performance regression. The reason behind this is that the ChargeFilters::EventMatchingService is reloading systematically the charge filters and associated values even if they were already pre-loaded in the Events::PostProcessService

Description

The PR is checking the cached status of the filters association to avoid the reload.

@vincent-pochet vincent-pochet added enhancement New feature or request Event Related to Events labels Oct 25, 2024
@vincent-pochet vincent-pochet merged commit 92ba0b9 into main Oct 25, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the misc-speed-up-cache-look-up branch October 25, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Event Related to Events
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants