-
Notifications
You must be signed in to change notification settings - Fork 785
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jharrell/quick-guides-edits
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
content/700-optimize/400-recommendations/1100-unnecessary-indexes.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: 'Unnecessary indexes' | ||
metaTitle: 'Optimize Recommendations: Unnecessary indexes' | ||
metaDescription: "Learn about the recommendation provided by Optimize for using Unnecessary indexes" | ||
tocDepth: 3 | ||
toc: true | ||
--- | ||
|
||
Optimize detects unnecessary indexes and recommends removing them to improve database performance. | ||
|
||
### Why this is a problem | ||
|
||
Indexes enhance database query performance but can harm efficiency when overused. They consume storage and add overhead to `INSERT`, `UPDATE`, and `DELETE` operations. Unnecessary indexes can result in: | ||
|
||
- **Increased write costs:** Extra indexes slow down write operations. | ||
- **Higher storage use:** Unused indexes waste storage space. | ||
- **Query optimizer confusion:** Redundant indexes may cause inefficient query plans. | ||
|
||
Removing unnecessary indexes improves performance and simplifies maintenance. |