Skip to content

Conversation

@labkey-jeckels
Copy link
Contributor

@labkey-jeckels labkey-jeckels commented Jul 16, 2025

Rationale

Four queries dominate the DB execution time on some deployments. They can be optimized to use indices.

Changes

  • Add missing indices
  • Store container aliases as lower case so the DB can use the index
  • Join on container RowId instead of EntityId

@labkey-jeckels labkey-jeckels self-assigned this Jul 16, 2025
@labkey-jeckels labkey-jeckels changed the base branch from develop to release25.7-SNAPSHOT July 16, 2025 23:16
Copy link
Contributor

@labkey-matthewb labkey-matthewb left a comment

Choose a reason for hiding this comment

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

I'm surprised we haven't hit paths > 255 length yet.

@LabKey LabKey deleted a comment from github-actions bot Jul 17, 2025
@labkey-jeckels labkey-jeckels merged commit 52c8d1a into release25.7-SNAPSHOT Jul 24, 2025
12 of 13 checks passed
@labkey-jeckels labkey-jeckels deleted the 25.7_fb_53476_slowQueries branch July 24, 2025 22:52
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