Skip to content

Fix slow queries in the allocations.#2071

Merged
jpwhite4 merged 2 commits intoubccr:xdmod11.0from
jpwhite4:alloc_fix
Jul 30, 2025
Merged

Fix slow queries in the allocations.#2071
jpwhite4 merged 2 commits intoubccr:xdmod11.0from
jpwhite4:alloc_fix

Conversation

@jpwhite4
Copy link
Copy Markdown
Member

@jpwhite4 jpwhite4 commented Jul 25, 2025

Description

One comment from the Users Group meeting was that XDMoD was slow to load. I also noticed that when Conner logged in the allocations widget took a long time to load (actually i think it may have timed out). Upon code review, noticed that there was a missing index on the allocationsummary table and the sql queries were not optimal.

Tested on xdmod-dev.

Original speed:
image

With updated index and sql:

image

So about 100 times faster.

@jpwhite4 jpwhite4 marked this pull request as ready for review July 28, 2025 14:47
@jpwhite4 jpwhite4 merged commit 7652b1d into ubccr:xdmod11.0 Jul 30, 2025
4 checks passed
@jpwhite4 jpwhite4 deleted the alloc_fix branch July 30, 2025 14:20
aaronweeden pushed a commit to aaronweeden/xdmod that referenced this pull request Aug 11, 2025
Fix slow queries in the allocations.
aaronweeden added a commit that referenced this pull request Aug 11, 2025
Co-authored-by: Joe White <jpwhite4@buffalo.edu>
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