Using strict loading for avoiding lazy loading and N+1 queries
Have you ever heard of strict loading in Rails? That feature is helping Rails developers prevent lazy loading and N+1 queries by raising an error when you try to access an association that hasn't been loaded.
For example, let's say we have an Article...
tonystrawberry.hashnode.dev2 min read