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

Ticket 50070: Slow query on the Early Stage PTM report #958

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

labkey-jeckels
Copy link
Contributor

Rationale

This query (and the pivot queries that build on it) can be very slow. In my testing this change is 10x faster.

Changes

  • Use a CTE so that the database doesn't need to fetch the same underlying data multiple times
  • Wire up a lookup for convenience

@labkey-jeckels labkey-jeckels merged commit 3a86ebe into release24.7-SNAPSHOT Sep 5, 2024
6 checks passed
@labkey-jeckels labkey-jeckels deleted the 24.7_fb_50070_ptmPerf branch September 5, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants