path in entity_autocomplete settings results in infinite amount of entries in key_value table

Created on 4 July 2025, 1 day ago

Problem/Motivation

We were looking at a 3GB+ key_value table on a client project and were able to track it down to key_value, specifically entity_autocomplete settings.

By looking at them, we saw search paths in them, which pointed us to the select2 facets integration.

Each unique autocomplete settings array is persisted forever because it's passed to the autocomplete route with a key to the stored settings.

It must not contain dynamic elements. Why is this needed?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Facets integration

Created by

🇨🇭Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024