Tagged articles
7 articles
Page 1 of 1
dbaplus Community
dbaplus Community
Mar 12, 2025 · Databases

Why Does LIMIT Pagination Slow Down? Deep Dive and Optimizations

This article reproduces a slow‑query scenario caused by deep pagination with LIMIT, explains the underlying index mechanics, and presents several practical SQL techniques—subquery, INNER JOIN, and anchor‑record methods—to dramatically reduce execution time.

Back-tableINNER JOINIndex Optimization
0 likes · 11 min read
Why Does LIMIT Pagination Slow Down? Deep Dive and Optimizations
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Aug 29, 2024 · Databases

Boost MySQL Queries: How GaussDB’s Limit‑Offset Pushdown Cuts Execution Time

GaussDB for MySQL introduces a Limit‑Offset pushdown optimization that moves offset calculation to the InnoDB storage engine, eliminating unnecessary row transfers and index‑back‑table lookups, thereby dramatically reducing query latency for large offsets as demonstrated by TPC‑H benchmarks.

Database PerformanceGaussDBPushdown Optimization
0 likes · 13 min read
Boost MySQL Queries: How GaussDB’s Limit‑Offset Pushdown Cuts Execution Time
21CTO
21CTO
Aug 16, 2021 · Databases

Why LIMIT with Large Offsets Slows MySQL and How to Fix It

This article explains why MySQL queries using LIMIT with a large offset become extremely slow, demonstrates the inefficiency through a 950‑million‑row table example, and shows how rewriting the query with a sub‑select join reduces execution time from seconds to milliseconds while preserving results.

InnoDBSQL Optimizationbuffer pool
0 likes · 9 min read
Why LIMIT with Large Offsets Slows MySQL and How to Fix It
Java Interview Crash Guide
Java Interview Crash Guide
Apr 15, 2021 · Databases

Why Large OFFSETs Slow MySQL Queries and How to Fix Them

A production MySQL query that uses huge OFFSET values caused massive slowdown, and the article explains the root cause, demonstrates data‑generation scripts, benchmarks the problem, and presents three practical solutions—including index‑covering subqueries, remembering the last primary‑key, and offset throttling—to dramatically improve pagination performance.

limit offsetmysql
0 likes · 15 min read
Why Large OFFSETs Slow MySQL Queries and How to Fix Them
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Dec 12, 2020 · Databases

Why LIMIT Offset Slows MySQL Queries and How to Optimize Them

This article explains how using a large LIMIT offset on a 9.5‑million‑row MySQL table causes massive I/O and slow queries, and demonstrates a sub‑query‑based rewrite that fetches only primary keys before joining, dramatically reducing execution time while also showing buffer‑pool effects.

buffer poolindexlimit offset
0 likes · 8 min read
Why LIMIT Offset Slows MySQL Queries and How to Optimize Them
Architect
Architect
Dec 10, 2020 · Databases

Optimizing MySQL LIMIT Offset Queries with Subqueries to Reduce Table Scans

This article demonstrates how to dramatically improve MySQL LIMIT offset query performance by moving the filter into a subquery that selects only primary keys, then joining to retrieve full rows, and validates the approach with buffer pool statistics and execution time measurements.

Subquerybuffer poollimit offset
0 likes · 9 min read
Optimizing MySQL LIMIT Offset Queries with Subqueries to Reduce Table Scans