Performance issues on search when node count is big

Created on 20 March 2025, 4 months ago

Problem/Motivation

When trying to implement a widget on an entity reference field that returns ~5k entities, site freezes when I try to enter a search query.

Steps to reproduce

- Install and enable the plugin the usual way
- Enable search on the widget
- Have a field of entity reference type that has a lot of entities as options
- Try to search

Proposed resolution

- Write an API controller callback function instead of current JS filter method in dropdowns class.
- Because the first proposition affects the performance on the server-side, figure out a solution to filter results efficiently with JS

πŸ› Bug report
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡·πŸ‡ΈSerbia darko_antunovic

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Comments & Activities

  • Issue created by @darko_antunovic
  • Status changed to Needs work 21 days ago
  • πŸ‡ΊπŸ‡ΈUnited States benabaird

    I'll be honest, there was no intent of using this module for large lists of nodes when built. If someone wants to work on a more performant filtering option (perhaps as a sub-module) I'm open to it, but for large amounts of entries an entity reference autocomplete is probably the better option.

Production build 0.71.5 2024