Replies: 3 comments 6 replies
-
@trepmag unfortunately, your suggested fix as well as the linked fix on the October repo both don't resolve the issue but instead just band-aid it by trying to limit the amount of options retrieved and displayed at any one time. As I mentioned in the comments on the October PR, the best way to fix this is to implement lazy-loading, where we load up results in batches of 100 (perhaps dropping the previous 100 once scrolled through to prevent too much HTML from being loaded) which should give us both the same fix that you have proposed and simultaneously allowing someone to show as many results as they want without the performance of the filter slowing down. |
Beta Was this translation helpful? Give feedback.
-
@trepmag the linked PR #5470 was merged to October CMS v2 and is working as expected. It's incomprehensible why not merged to Winter CMS since it does not introduces breaking changes... |
Beta Was this translation helpful? Give feedback.
-
The issue: You can't filter the lists when more than 500 options are present in group filter. With the mentioned PR: you can => Issue fixed!
We use this PR in production with tens of thousands of related records, and we do not experience any performance problem. Sam talks about UX issue not UI/DOM performance issue. But I can't imagine bigger UX issue than something is not working as expected! With the merged PR in October the model query is limited to 200 items when you open the group filter and also when you search in it. In Winter it is limited to 500 items. Doesn't that mean a performance increase rather? |
Beta Was this translation helpful? Give feedback.
-
If you have thousands (or more) of items as a input for the backend list filter options then your system will fails later or sooner...
The solution is annoted here octobercms/october#5470 (comment) which mention that
modules/system/assets/ui/js/filter.js
needs to be fixed for this.Here is an attempts to fix
filter.js
: trepmag/wn-system-module@caaf76a then the filter group must be defined as follow:config_filter.yaml:
Contact.php model:
Related issues:
Beta Was this translation helpful? Give feedback.
All reactions