You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Find a way to configure the list view filters in statamic - I didn't manage to find one yet
Look through statamic frontend or backend code to find a good spot to override one of the default implementations with an improved one
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.
For the Edit Entry Page:
There are 2 workarounds to address performance issues when dealing with a large number of taxonomy terms:
Configure the blueprint to use the "Stack Selector" UI Mode for the taxonomy field. However, that might not be very convenient for certain taxonomies, like Tags.
Create a Query Scope with something like $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.
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
The text was updated successfully, but these errors were encountered: