Curious about the best direction or design pattern to use here -
looking for opinions.
I have a store with products diced into categories. Should I create a
polymorphic model 'Product' and have individual models for the product
types? Reason is - the products differ quite a bit in columns/profile
etc... I could keep in one table but feel it will get horizontally fat
quickly as these different product types get modified.
Question is - I'll need to access these different products so would I
simply delegate attributes to the Product model so I can access each
related model's attributes? For instance, I'll need to fetch all of a
certain type through the Product model.
I guess I could use STI for this but seems polymorphic would perform
Appreciate any feedback on whether this is practical or way off.