Skip to content

Get all numerics in one go for faster goal conversion calculation #20438

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

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Mar 9, 2023

Description:

Noticed this one the other day while reviewing #20332
There were quite a few queries done to always find the correct archive IDs etc when we can maybe speed it slightly up.

It didn't make a huge difference I believe so we could also just close it although it might depend on the number of goals and overall load of the production system and how many archive records exist. Overall 30% of the time of the request was spent here though. This was a for a "range" period request.

image

The slow part was in getArchiveIds where it caused 24 of the 25 calls
image

There was a failing test but it doesn't look related to this change.

Review

@tsteur tsteur added the Needs Review PRs that need a code review label Mar 9, 2023
@tsteur tsteur added this to the 4.13.4 milestone Mar 9, 2023
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks fine, tests are passing, so can't see any downsides in merging this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Development

Successfully merging this pull request may close these issues.

2 participants