The definition of polymorphism is 'an object's ability to display more than one form'. But what does this mean in Object Oriented Programming and more specifically in Ruby on Rails? Read on to learn about the power of polymorphic associations and the magic -able term.
Let's stay with ActiveRecord. You can use preloading to avoid N+1 queries, but this could actually introduce performance problems in some cases. This post explains different ways of efficiently preloading a count of records.
The 2022 RoR Community Survey results are out and of course you can find them right here in Docto Tech Life newsletter. Where does Rails stand as a framework in 2022, who uses it and how, how do they test and deploy... It even includes some great podcast recommendations.
|