While it’s possible to query embeds with fragments and direct SQL syntax, I’d say that using embeds when you need to query on the fields is a wrong choice, and regular association is the way to go. It’s harder to properly index and that will cause queries to be extremely slow on bigger data sets.
Embeds are great for some use cases, but they shouldn’t be abused.
3 Likes






















