When using Laravel morphs, you can eek out some extra performance by using small integers instead of strings for your morph types.

Smaller, faster indexes for the database to manage!

Especially useful for tables like comments or audits, which can be many millions of rows.

 

Views 0  
 

1   person reacted to this.   Views 0  
Support Slydap @spur.gowdy Updated his profile picture Jul 6, 2018

Changed Profile Picture