Skip to content

[Form] Call getChoicesForValues() once, to prevent several SQL queries #48208

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

Closed
wants to merge 1 commit into from
Closed

Conversation

elementaire
Copy link
Contributor

@elementaire elementaire commented Nov 13, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

The feature "Keeping valid submitted choices when additional choices are submitted" adds some overload to list the valid choices.

With options set to multiple=true, expanded=false and using an EntityType, it performs several queries, one for each value.

@carsonbot
Copy link

Hey!

I think @alexandre-daubois has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@OskarStark
Copy link
Contributor

It's a feature and should be against 6.3

@xabbuh xabbuh modified the milestones: 4.4, 6.3 Nov 15, 2022
@OskarStark OskarStark changed the title [Form] Calls getChoicesForValues once, preventing several SQL queries. [Form] Call getChoicesForValues() once, to prevent several SQL queries Nov 15, 2022
@elementaire elementaire closed this by deleting the head repository Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants