#deep-dive
2 articles with this tag
Related Tags
-
9 min readWhy does Rails put the type column first in an index for a polymorphic association?Last week, I had a discussion with a coworker about how Rails indexes columns used in polymorphic associations. He thought that the order of columns in the index should be flipped - instead of indexing by type and ID, it should index by ID and type - as that way the most restrictive column is...
-
25 min readDeconstructing Action CableI knew what Action Cable was about and roughly how it worked since it was released. But lately I've developed a much deeper understanding of it because I had to extend it and explain its internals to others. The following is how I explained Action Cable to myself. I took a top-down approach,...