Easticsearch or OpenSearch consumes higher-than-expected memory or CPU resources
Every search, category page and filtered browsing view in Magento requests a set of results and a set of filter options from your search service. On a large catalogue those requests can grow very large, quietly consuming server resources on every single page view.
This extension sets a maximum — one number you control from the admin panel — and makes sure it is never exceeded. Whatever a request asks for, only up to your limit is ever retrieved. You decide the ceiling; the extension enforces it everywhere.
Features
- Maximum results per search.Set the highest number of results a single search may retrieve. Anything above your limit is trimmed down to it.
- Maximum options per filter.Set how many values each filter in your layered navigation may return, so attributes with thousands of values stop pulling their entire option list on every page.
- Deep pagination protection (optional). Put a ceiling on how far a visitor can page through results.
- Total-result counting control (optional). Trade exact result counters for extra speed on very large catalogues.
- Configurable per scope. Set different limits globally, per website, or per store view.
- One master switch.Enable or disable the entire extension instantly, with no code changes.
- Optional logging. Record every value that gets trimmed, so you can see the effect before and after.
Benefits
- Noticeably lighter activity on your search service during browsing and searching.
- Lower server load and faster page responses, especially under heavy traffic.
- Filter menus stay responsive even when attributes have thousands of possible values.
- Your storefront keeps working exactly as before — shoppers simply get a faster experience.
- Nothing breaks: values are only ever reduced, never increased, and a search can never fail because of the limit.
- Fully reversible: one setting turns it off, and nothing in Magento core is modified.
Compatibility
Magento 2.4.x (Open Source and Adobe Commerce). No third-party extensions required.