Paweł Świątkowskisolid-dry-kiss.hashnode.dev·Jul 28, 2022ActiveRecord, over-optimization and POLSI 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...Ruby on Rails