Enhanced ActiveRecord preloading

This page summarizes the projects mentioned and recommended in the original post on /r/rails

Scout Monitoring - Performance metrics and, now, Logs Management Monitoring with Scout Monitoring
Get early access to Scout Monitoring's NEW Ruby logging feature [beta] by signing up now. Start for free and enable logs to get better insights into your Rails apps.
www.scoutapm.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • ArLazyPreload

    Lazy loading associations for the ActiveRecord models

    Attentive reader could notice that in every described case, it was a requirement to explicitly list data that we want to preload for a group of users. Gladly, there is a simple solution! ArLazyPreload will make N+1 disappear just by enabling it. As soon as you need to load association for any record, it will load it once for all records that were fetched along this one. And it works with ActiveRecord and N1Loader perfectly!

  • Scout Monitoring

    Performance metrics and, now, Logs Management Monitoring with Scout Monitoring. Get early access to Scout Monitoring's NEW Ruby logging feature [beta] by signing up now. Start for free and enable logs to get better insights into your Rails apps.

    Scout Monitoring logo
  • counter_culture

    Turbo-charged counter caches for your Rails app.

    It's worth mentioning counter_culture alternative that has many features compared with the built-in counter_cache

  • n1_loader

    Loader to solve N+1 issues for good. Highly recommended for GraphQL API.

    Unfortunately, such associations are not possible to preload with includes. Gladly, there is a solution with N1Loader.

  • DatabaseConsistency

    The tool to avoid various issues due to inconsistencies and inefficiencies between a database schema and application models.

    Described issues may be found with DatabaseConsistency.

  • Goldiloader

    Just the right amount of Rails eager loading

    Thank you for sharing this with me! It seems that https://github.com/salsify/goldiloader gem does the same as https://github.com/DmitryTsepelev/ar_lazy_preload. It would be great to compare both solutions.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • A newbie's look at N+1 queries

    1 project | dev.to | 27 Jun 2024
  • BasedUUID: URL-friendly, Base32-encoded UUIDs for Rails models

    1 project | /r/ruby | 6 Dec 2023
  • N1Loader is alive as ever Enhance your GraphQL API by getting rid of N+1 issues

    1 project | news.ycombinator.com | 30 Jul 2023
  • Best rails tools to automatically handle logging of things like all a user's actions, or changes to a record in a module - primarily for audit purposes.

    4 projects | /r/rails | 9 Mar 2023
  • Uniqueness validation does not work since the beginning of Ruby on Rails.

    3 projects | dev.to | 4 Feb 2023

Did you konow that Ruby is
the 12th most popular programming language
based on number of metions?