Why I don't like Custom fields?

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Custom fields in Shopware offer convenience for storing arbitrary data on entities, but come with significant drawbacks. Being schema-less and stored as JSON creates performance issues with SQL filtering and aggregation, causes Elasticsearch indexing problems due to dynamic type mapping, and exposes all fields publicly through APIs. The lack of schema also prevents proper associations, makes SQL modifications difficult, and creates inconsistent behavior between MySQL and MariaDB. Entity extensions are recommended as a better alternative despite requiring more initial setup effort.

2m read timeFrom shyim.me
Post cover image
Table of contents
But when search / filtering / aggregation is slow. Can I not just use Elasticsearch? #But when is it okay to use them? #But Entity Extensions are so annoying to create #

Sort: