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

Afform - Optimize Get by checking type #21316

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Aug 30, 2021

Overview

Makes Afform get API calls more efficient if "type" is specified in the where clause, e.g. when fetching forms of type "search".

Before

Sometimes Afforms are fetched by type, e.g. cv api4 Afform.get +w type=search
Previously this would load all html files and custom data groups before discarding the ones not of type search.

After

Fetching by type skips unnecessary file and custom data loading.

… custom data

Sometimes afforms are fetched by type, e.g. `cv api4 Afform.get +w type=search`
Previously this would load all html files and custom data groups before
discarding the ones not of type search.
Now it will skip irrelevant files.
@civibot
Copy link

civibot bot commented Aug 30, 2021

(Standard links)

@civibot civibot bot added the master label Aug 30, 2021
@seamuslee001
Copy link
Contributor

Tested this works well merging

@seamuslee001 seamuslee001 merged commit 0572f59 into civicrm:master Sep 1, 2021
@seamuslee001 seamuslee001 deleted the afformGet branch September 1, 2021 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants