ActiveRecord, over-optimization and POLS
I recently learned that ActiveRecord implements an "interesting" optimization. When you pass a condition to where that could not ever be satisfied, mostly by passing an empty array, it skips the database call completely, returning empty result set. A...
solid-dry-kiss.hashnode.dev4 min read