Skip to content

Commit 0b524d0

Browse files
committed
Fix typo in index explanation and update image file
1 parent 021864e commit 0b524d0

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

learn-pr/wwl-data-ai/design-implement-database-objects/includes/4-design-implement-indexes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Indexes are data structures that accelerate data retrieval by creating optimized lookup paths to table rows. Without indexes, the database engine must scan every row in a table to find matching records, a full table scan that becomes prohibitively slow as tables grow.
22

3-
An index works like a book's index: instead of reading every page to find a article, you consult the index to jump directly to relevant pages. The database uses indexes similarly, converting potentially millions of row comparisons into a handful of efficient lookups.
3+
An index works like a book's index: instead of reading every page to find an article, you consult the index to jump directly to relevant pages. The database uses indexes similarly, converting potentially millions of row comparisons into a handful of efficient lookups.
44

55
However, indexes consume storage space and slow down `INSERT`, `UPDATE`, and `DELETE` operations because the database must maintain the index structure alongside the data. This trade-off makes index selection a critical design decision that directly impacts both query performance and write throughput.
66

58.5 KB
Loading

0 commit comments

Comments
 (0)