Tag

covering index

0 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Jan 19, 2025 · Databases

Understanding MySQL Covering Indexes, Table Lookups, and the Leftmost Prefix Rule

This article explains MySQL covering indexes, how table lookups (back‑table operations) work, and the leftmost prefix rule for composite indexes, providing practical examples and tips for optimizing query performance in interview scenarios.

Back TableDatabase OptimizationIndexing
0 likes · 8 min read
Understanding MySQL Covering Indexes, Table Lookups, and the Leftmost Prefix Rule
Java Tech Enthusiast
Java Tech Enthusiast
Nov 12, 2024 · Databases

The Origin Story of Covering Indexes in SQLite

The article recounts how SQLite’s creator, D. Richard Hipp, learned about covering indexes from MySQL co‑founder David Axmark at a German PHP conference and, during a trans‑Atlantic Delta flight, added support that lets queries be satisfied entirely from the index, dramatically boosting performance by avoiding table reads.

Database OptimizationSQLSQLite
0 likes · 5 min read
The Origin Story of Covering Indexes in SQLite
Lobster Programming
Lobster Programming
Apr 28, 2024 · Databases

How to Solve MySQL Deep Pagination: Causes and 6 Effective Optimization Strategies

Deep pagination in MySQL becomes a performance bottleneck when tables reach millions of rows, causing excessive row scans and costly index lookups; this article explains its root causes and presents six practical optimization techniques—including keyset pagination, delayed joins, covering indexes, data partitioning, and external search engines—to dramatically improve query speed.

IndexingMySQLQuery Optimization
0 likes · 7 min read
How to Solve MySQL Deep Pagination: Causes and 6 Effective Optimization Strategies
Top Architect
Top Architect
Mar 29, 2023 · Databases

MySQL Query Optimization and Index Tuning: From Subqueries to Joins and Composite Indexes

This article demonstrates MySQL query performance issues with large tables, shows how a subquery without indexes can take hours, and walks through step‑by‑step optimizations including adding single‑column indexes, converting to EXISTS and JOIN queries, creating composite indexes, covering indexes, and sorting improvements, achieving speedups of thousands of times.

IndexingMySQLQuery Tuning
0 likes · 12 min read
MySQL Query Optimization and Index Tuning: From Subqueries to Joins and Composite Indexes
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 2, 2023 · Databases

Improving MySQL Query Performance with Covering Indexes

This article demonstrates how creating a covering composite index on MySQL tables can reduce a 55‑second aggregation query on five million rows to about two seconds by eliminating the need for row lookups and fully utilizing index data.

MySQLSQL Optimizationcovering index
0 likes · 7 min read
Improving MySQL Query Performance with Covering Indexes
Wukong Talks Architecture
Wukong Talks Architecture
Oct 25, 2021 · Databases

MySQL Index Optimization and Code Review Practices

This article explains MySQL index fundamentals, the B+Tree structure, various index types, the concept of covering indexes to avoid row look‑ups, the left‑most prefix rule, and presents three real‑world optimization cases that illustrate how to design effective composite indexes, reduce index size, and improve query performance while avoiding costly table scans and sorts.

Code ReviewIndex OptimizationMySQL
0 likes · 13 min read
MySQL Index Optimization and Code Review Practices
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Aug 5, 2021 · Databases

Understanding and Optimizing ORDER BY in MySQL

This article explains the internal execution process of MySQL's ORDER BY, compares full‑field and rowid sorting, shows how indexes, sort_buffer size and max_length_for_sort_data affect performance, and provides practical optimization techniques such as composite and covering indexes.

MySQLORDER BYQuery Optimization
0 likes · 13 min read
Understanding and Optimizing ORDER BY in MySQL
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 2, 2021 · Databases

Why MySQL Chooses a Composite Index Even When the Query Skips the Leftmost Column

This article explains why MySQL may still use a composite index as a covering or range index despite the query not following the leftmost‑prefix rule, by analyzing optimizer trace output and demonstrating the behavior with concrete experiments.

MySQLSkip Scancomposite index
0 likes · 3 min read
Why MySQL Chooses a Composite Index Even When the Query Skips the Leftmost Column
macrozheng
macrozheng
Jul 14, 2020 · Databases

Why SELECT * Slows Down MySQL: Deep Dive into Indexes and Optimization

This article explains why using SELECT * in MySQL queries degrades performance, covering increased parsing cost, unnecessary data transfer, loss of covering index optimization, and how proper column selection and index design can dramatically improve query speed.

IndexesMySQLSQL Optimization
0 likes · 10 min read
Why SELECT * Slows Down MySQL: Deep Dive into Indexes and Optimization
Architect's Tech Stack
Architect's Tech Stack
Jun 27, 2020 · Databases

Why Using SELECT * Is Inefficient in MySQL and How Indexes Improve Query Performance

This article explains why using SELECT * in MySQL queries reduces performance, detailing increased parsing cost, network overhead, I/O for large columns, and loss of covering index optimization, and also expands on index concepts such as composite indexes and their impact on query efficiency.

Index OptimizationMySQLSQL
0 likes · 11 min read
Why Using SELECT * Is Inefficient in MySQL and How Indexes Improve Query Performance
Java Captain
Java Captain
Apr 12, 2019 · Databases

Understanding MySQL Indexes in InnoDB: Structures, Types, and Optimization Techniques

This article explains MySQL indexes—defining what they are, classifying them by structure, storage, and logic, illustrating InnoDB clustered and secondary index structures with examples, and covering advanced concepts such as covering indexes, the leftmost‑prefix rule, and index condition pushdown to improve query performance.

Database IndexesIndex Condition PushdownInnoDB
0 likes · 10 min read
Understanding MySQL Indexes in InnoDB: Structures, Types, and Optimization Techniques