DatabaseConsistency
ArLazyPreload
Our great sponsors
DatabaseConsistency | ArLazyPreload | |
---|---|---|
8 | 3 | |
973 | 636 | |
- | - | |
7.5 | 5.7 | |
3 months ago | 25 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
DatabaseConsistency
-
Uniqueness validation does not work since the beginning of Ruby on Rails.
DatabaseConsistency is a tool to avoid various issues due to inconsistencies and inefficiencies between a database schema and application models.
-
Many of us can face issues working with ActiveRecord due to its inconsistency with the database schema. That's why I have built database_consistency, which can help you avoid the most common issues and improve your application's performance.
Yes, the gem supports flexible configuration and slow start with TODO generation.
-
Enhanced ActiveRecord preloading
Described issues may be found with DatabaseConsistency.
-
N+1 problem will never be an issue with N1Loader gem
Don't know Database Consistency or Factory Trace which can help you to improve your code? Check them out too!
-
Rails application boilerplate for fast MVP development
add database_consistency
ArLazyPreload
- Proof of Concept: auto-preloading in ActiveRecord
-
Enhanced ActiveRecord preloading
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!
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.
What are some alternatives?
QueryTrack - Find time-consuming database queries for ActiveRecord-based RailsĀ Apps
DatabaseValidations - Database validations for ActiveRecord
n1_loader - Loader to solve N+1 issues for good. Highly recommended for GraphQL API.
Scenic - Versioned database views for Rails
BatchLoader - :zap: Powerful tool for avoiding N+1 DB or HTTP queries
Blazer - Business intelligence made simple
Foreigner - Adds foreign key helpers to migrations and correctly dumps foreign keys to schema.rb
Database Cleaner - Strategies for cleaning databases in Ruby. Can be used to ensure a clean state for testing.
Polo - Polo travels through your database and creates sample snapshots so you can work with real world data in development.
Seed dump - Rails 4/5 task to dump your data to db/seeds.rb
SchemaPlus - SchemaPlus provides a collection of enhancements and extensions to ActiveRecord
Acts As Votable - Votable ActiveRecord for Rails