Releem offers a range of Schema Checks to ensure the database schema remains efficient:
- Primary Key Check (Missing Primary Keys) - Verifies that each table has a primary key, which is crucial for unique row identification and efficient query performance.
- Table Engine Check (Deprecated Table Engine) - Identifies tables using outdated storage engines, such as MyISAM, and recommends migration to InnoDB for enhanced performance and reliability.
- Table Collation Check (Mixed Collations) - Detects inconsistent collation settings across tables or columns, which can lead to performance issues during string comparisons and joins.
- Table Character Set Check (Mixed Character Set) - Finds variations in character sets within the database that may cause data inconsistency and encoding problems.
- Column Auto Increment Check (Type of Auto Increment Columns) - Ensures that auto-increment columns are appropriately defined to prevent potential data insertion errors.
- Table Foreign Key Check (Existence of Foreign Keys) - Confirms the presence of foreign keys where necessary to maintain referential integrity between related tables.
- Duplicated Index Check - Identifies redundant indexes that can negatively impact performance and increase storage requirements.
- Unused Index Check - Detects indexes that are not utilized by queries, suggesting their removal to optimize performance.