---
title: "Discussion on \"Eager Loading\" | Hashnode"
description: "Discussion on \"Eager Loading\". What is Eager Loading ?\nEager loading is a mechanism through which ActiveRecord loads the associated records in memory, reducing the number of executed sql queries.\nThere are following ways to do eager loading in ActiveRecord:\n\nincludes\n\npreload\n\neag..."
url: "https://hashnode.com/posts/eager-loading/6839a31bdee19c63149364e9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Eager Loading](https://codingwithaglassofmilk.hashnode.dev/eager-loading?utm_source=hashnode&utm_medium=feed)

What is Eager Loading ? Eager loading is a mechanism through which ActiveRecord loads the associated records in memory, reducing the number of executed sql queries. There are following ways to do eager loading in ActiveRecord: includes preload eag...

May 30, 2025 · 5 min read · codingwithaglassofmilk.hashnode.dev  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#activerecord](https://hashnode.com/tag/activerecord)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)

## Written by

[Ashish Gaur](https://hashnode.com/@snyder91)

@snyder91

  
[View profile](https://hashnode.com/@snyder91)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
