-
-
Notifications
You must be signed in to change notification settings - Fork 47
MissingIndexChecker
Evgeniy Demin edited this page Nov 25, 2022
·
1 revision
Imagine your model has a has_one :user
association but has no index in the database. In this case, querying the database to get the associated instance can be very inefficient. Mostly, you'll need an index to process such queries fast.
Additionally, has_one
associations should be unique on the database level to avoid unexpected behavior.
If the project helps you or your organization, I would be very grateful if you contribute or donate. Your support is an incredible motivation and the biggest reward for my hard work.
- Home
- Installation
- How to run?
- Configuration
- Auto correction
- Integrations
- Implementing Custom Checker
- Checkers
- ColumnPresenceChecker
- LengthConstraintChecker
- NullConstraintChecker
- UniqueIndexChecker
- ForeignKeyChecker
- MissingUniqueIndexChecker
- MissingIndexChecker
- PrimaryKeyTypeChecker
- ForeignKeyTypeChecker
- RedundantIndexChecker
- RedundantUniqueIndexChecker
- EnumTypeChecker
- ForeignKeyCascadeChecker
- EnumValueChecker
- CaseSensitiveUniqueValidationChecker
- ThreeStateBooleanChecker
- MissingAssociationClassChecker
- MissingTableChecker
- ImplicitOrderingChecker
- FAQ
- Development