---
title: "#pols articles | Hashnode"
description: "Explore 1 articles tagged #pols on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/pols"
---

Tag

# #pols

1 posts · 0 followers

[Paweł Świątkowski](https://hashnode.com/@katafrakt) · [Jul 28, 2022](https://hashnode.com/posts/activerecord-over-optimization-and-pols/62e26b4cd7b405bea15575fe)

### [ActiveRecord, over-optimization and POLS](https://solid-dry-kiss.hashnode.dev/activerecord-over-optimization-and-pols?utm_source=hashnode&utm_medium=feed)

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...

4 min read · [solid-dry-kiss.hashnode.dev](https://solid-dry-kiss.hashnode.dev/activerecord-over-optimization-and-pols?utm_source=hashnode&utm_medium=feed)
