Skip to content

Skip expensive work in getQueries.api if certain props aren't needed #3961

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 6 commits into from
Jan 4, 2023

Conversation

labkey-adam
Copy link
Contributor

@labkey-adam labkey-adam commented Dec 28, 2022

Rationale

As discussed in the related PR and ticket, generating the column list for PIVOT queries can be very expensive. Related PR avoided this work in some cases (e.g., schema browser tree). This PR adds flags and reworks GetQueriesAction to avoid querying for columns in other cases (e.g., linked schema table drop-down).

https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=47010

Related Pull Requests

Changes

  • Add new GetQueriesAction flags: includeColumns and includeTitle. If these two flags are false as well as the (existing) includeColumns flag, then avoid creating the TableInfo and invoking getPivotValues().
  • Add the two flags to SQV selector and linked schema admin page.

@labkey-adam labkey-adam requested review from labkey-nicka and removed request for labkey-nicka January 3, 2023 23:25
@labkey-adam labkey-adam requested a review from a team January 4, 2023 01:15
@labkey-adam labkey-adam merged commit 8fe3eda into develop Jan 4, 2023
@labkey-adam labkey-adam deleted the fb_pivot_perf branch January 4, 2023 17:08
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