- π©πͺGermany donquixote
This is by design, in order to get the translated label of an entity we need to load the full entity object. And it's also the reason why the autocomplete widget exists :)
It is generally not needed to load all entities into memory at once.
To get a translated title while saving memory, we can/could/should load and "forget" the entities one by one.We could also cache individual translated entity labels, and complete option lists.
(This needs cache metadata to deliver different filtered option lists based on user permissions.)I don't see a "reopen" button here, but it would be appropriate.
- Status changed to Active
9 months ago 8:22pm 14 February 2024 - π©πͺGermany donquixote
Actually I _can_ reopen it!
The only case when we should close it is if we decide to open a new issue, or find one. - π©πͺGermany donquixote
And it's also the reason why the autocomplete widget exists :)
I was going to switch a lot of widgets to autocomplete on a big site I work on.
Unfortunately this can come with some usability limitations.Currently we use https://www.drupal.org/project/slim_select β which works for select widgets but not autocomplete widgets, because it does all the magic on client side.
I can imagine a similar widget could be created for autocomplete, but I have not found one yet.
Also, having the full option list on client side will make the UI more snappy as it avoids the need for ajax requests.There is a middle ground of ~250 options, where we want a select list with optimized loading, rather than repeated autocomplete ajax requests. E.g. a country dropdown could have this order of magnitude of options.
- π³πΏNew Zealand quietone
This is on Version 8.9.x which is End of Life. Moving to 11.x