Italo Baeza Cabrera
1 min readMay 17, 2019

--

Well, you just use polymorphic relationships instead of saving the relation data (or the whole relation) inside a JSON. I’m not talking about performance, but rather, accessibility, without having 3 tables each with their own foreign column for the correct relationship, thus triplicating the same data across 3 tables.

--

--

Italo Baeza Cabrera
Italo Baeza Cabrera

Written by Italo Baeza Cabrera

Graphic Designer graduate. Full Stack Web Developer. Retired Tech & Gaming Editor. https://italobc.com

Responses (1)