Open danielwashbrook opened 3 months ago
To add to the description:
For the Edit Entry Page: There are 2 workarounds to address performance issues when dealing with a large number of taxonomy terms:
$query->limit(100)
and configure the taxonomy field to use the "Typeahead Field" UI Mode in combination with that query scope.
Perhaps limiting the search results could become the default behavior of the typeahead? Currently, with a large number of terms, the browser can be overwhelmed when trying to render all search results, especially if you type a common letter like "a".For the Collection Entries List View: Unfortunately, it seems there isn't a similar configuration option available for the Control Panel page listing all entries in a collection. That page always fetches all terms for all taxonomies associated with the collection to populate plain select fields for the filters.
I was/am having similar issues. I detailed what I did and learned under this issue
Bug description
After importing a large set of content that includes 19k Taxonomy Terms, the Entries list view and edit view becomes very slow as it loads all the terms as "Statamic\Eloquent\Taxonomies\TermModel" for the filters in the list view and the typeahead field selector on the edit view. I currently see the following options to solve this:
Thanks!
How to reproduce
Create a collection with a taxonomy term reference. Generate a large body of Terms for that taxonomy and create a few Entries of that collection type. Navigate to the list view of the Collection and subsequently the edit view of one of the entries.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response