7 months ago

Laravel's polymorphic relationships performance vs normal relationships

Posted 7 months ago by nikocraft

When it comes to polymorphic relationships are there any hits on performance vs. using standard relationships. Or are polymorphic relationships equally good? I have a case where I can merge 3 tables into one and make the relationships polymorphic instead of normal relationships.

How often does the rest of you like to use polymorphic relationships, as soon as the opportunity presents itself or do you try to avoid them?

Please sign in or create an account to participate in this conversation.