Tag

Full Table Scan

0 views collected around this technical thread.

Architect
Architect
Apr 29, 2025 · Databases

Lessons Learned from Misusing INSERT INTO SELECT in MySQL Data Migration

A real‑world MySQL data‑migration case study shows how using INSERT INTO SELECT without proper indexing caused a full table scan, OOM errors, and data loss, and explains how to avoid the pitfall by adding appropriate indexes and understanding transaction locking.

Full Table ScanINSERT INTO SELECTIndexing
0 likes · 8 min read
Lessons Learned from Misusing INSERT INTO SELECT in MySQL Data Migration
Code Ape Tech Column
Code Ape Tech Column
Apr 23, 2025 · Databases

Impact of Full Table Scans on MySQL Server Memory and InnoDB Buffer Pool

A full‑table scan of a 200 GB InnoDB table on a MySQL server with 100 GB RAM does not exhaust server memory because MySQL streams rows to the client, uses a fixed net_buffer, and InnoDB’s optimized LRU algorithm limits buffer‑pool pressure, ensuring stable performance.

Buffer PoolFull Table ScanInnoDB
0 likes · 10 min read
Impact of Full Table Scans on MySQL Server Memory and InnoDB Buffer Pool
Lobster Programming
Lobster Programming
Dec 16, 2024 · Databases

Why MySQL Never Runs Out of Memory During Massive Full Table Scans

Even when scanning tables with tens of millions of rows, MySQL avoids out‑of‑memory crashes by streaming data in small 16 KB net buffers, using socket buffers, and employing an improved LRU algorithm that isolates cold data in the buffer pool’s old generation.

Buffer PoolFull Table ScanLRU
0 likes · 5 min read
Why MySQL Never Runs Out of Memory During Massive Full Table Scans
Top Architect
Top Architect
May 28, 2024 · Databases

Lessons Learned from Using INSERT INTO SELECT for MySQL Data Migration

This article recounts a real-world MySQL data migration incident where using INSERT INTO SELECT caused out‑of‑memory errors and data loss, analyzes why full table scans and transaction locking led to failures, and offers practical recommendations such as indexing and avoiding bulk inserts for large tables.

Full Table ScanINSERT INTO SELECTMySQL
0 likes · 8 min read
Lessons Learned from Using INSERT INTO SELECT for MySQL Data Migration
macrozheng
macrozheng
May 18, 2024 · Databases

Why Insert‑Into‑Select Can Crash Your MySQL and How to Prevent It

A real‑world MySQL incident shows that using INSERT INTO SELECT without proper indexing can trigger full table scans, lock tables, cause OOM and data loss, while a careful analysis and adding indexes can safely resolve the issue.

Full Table ScanINSERT INTO SELECTIndexing
0 likes · 7 min read
Why Insert‑Into‑Select Can Crash Your MySQL and How to Prevent It
Java Architect Essentials
Java Architect Essentials
May 16, 2024 · Databases

Lessons Learned: Risks of Using INSERT INTO SELECT for MySQL Data Migration

The article analyzes a real‑world MySQL data‑migration failure caused by an INSERT INTO SELECT operation that triggered full‑table scans and row‑level lock contention, leading to massive data loss and highlighting the need for proper indexing and cautious use of this command.

Full Table ScanINSERT INTO SELECTMySQL
0 likes · 7 min read
Lessons Learned: Risks of Using INSERT INTO SELECT for MySQL Data Migration
Architecture Digest
Architecture Digest
May 12, 2024 · Databases

Case Study: MySQL INSERT INTO SELECT Caused Data Loss Due to Full Table Scan

A MySQL data‑migration task using INSERT INTO SELECT triggered a full‑table scan, leading to lock contention, payment‑record loss, and ultimately the developer's dismissal, highlighting the dangers of unindexed bulk operations and the need for proper indexing and testing.

Full Table ScanINSERT INTO SELECTIndexing
0 likes · 7 min read
Case Study: MySQL INSERT INTO SELECT Caused Data Loss Due to Full Table Scan
Architecture Digest
Architecture Digest
Dec 25, 2023 · Databases

Lessons Learned from Misusing INSERT INTO SELECT in MySQL: OOM, Full Table Scan, and Transaction Issues

This article recounts a real‑world MySQL data‑migration failure caused by an unguarded INSERT INTO SELECT that triggered OOM, full‑table scans, and row‑level locking, explains why testing missed the problem, and offers indexing and transaction‑level safeguards to prevent similar incidents.

Full Table ScanINSERT INTO SELECTIndexing
0 likes · 6 min read
Lessons Learned from Misusing INSERT INTO SELECT in MySQL: OOM, Full Table Scan, and Transaction Issues
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 7, 2023 · Databases

Understanding Full Table Scan vs Full Primary Key Scan in MySQL InnoDB

This article analyzes the differences between MySQL's full table scan and full primary‑key scan by examining execution plans, source‑code paths, and runtime behavior, demonstrating that both ultimately read data from the primary‑key index and explaining why the optimizer distinguishes them.

Database OptimizationFull Table ScanInnoDB
0 likes · 9 min read
Understanding Full Table Scan vs Full Primary Key Scan in MySQL InnoDB
Top Architect
Top Architect
Jan 20, 2022 · Databases

Understanding the Impact of Full Table Scans on MySQL Server and InnoDB Buffer Pool

Full table scans on large InnoDB tables do not exhaust MySQL server memory because results are streamed in small net buffers, while InnoDB’s optimized LRU algorithm and buffer pool management ensure that massive scans minimally affect buffer pool hit rates and overall system performance.

Buffer PoolFull Table ScanInnoDB
0 likes · 11 min read
Understanding the Impact of Full Table Scans on MySQL Server and InnoDB Buffer Pool
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 26, 2021 · Databases

Why MySQL Optimizer Chooses Full Table Scan Over Index Scan: Cost Analysis and Experiment

This article explains how MySQL's cost‑based optimizer decides between using an index and performing a full table scan, demonstrates the behavior with a large test table, shows optimizer trace details, and clarifies why index access can sometimes be more expensive than scanning the whole table.

Cost-Based OptimizerFull Table ScanMySQL
0 likes · 8 min read
Why MySQL Optimizer Chooses Full Table Scan Over Index Scan: Cost Analysis and Experiment
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 26, 2021 · Databases

Why MySQL Optimizer Chooses a Full Table Scan for ORDER BY id ASC LIMIT 1 and How to Force the Correct Index

The article analyzes a MySQL optimizer bug where a query with ORDER BY id ASC LIMIT 1 triggers a full‑table scan despite an applicable idx_uid_stat index, explains the cost‑based decision process, and presents two practical work‑arounds—using FORCE INDEX or a harmless arithmetic expression—to ensure the index is used.

Full Table ScanMySQLSQL
0 likes · 7 min read
Why MySQL Optimizer Chooses a Full Table Scan for ORDER BY id ASC LIMIT 1 and How to Force the Correct Index
Architecture Digest
Architecture Digest
Mar 8, 2021 · Databases

Lessons Learned from Misusing INSERT INTO SELECT in MySQL: Avoid Full Table Scans and OOM

This article recounts a costly MySQL data‑migration failure caused by an unchecked INSERT INTO SELECT that triggered full‑table scans, lock contention and out‑of‑memory errors, and explains how proper indexing and awareness of transaction isolation can prevent such incidents.

Full Table ScanINSERT INTO SELECTMySQL
0 likes · 7 min read
Lessons Learned from Misusing INSERT INTO SELECT in MySQL: Avoid Full Table Scans and OOM
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 30, 2019 · Databases

Understanding MySQL Full‑Table‑Scan Data Access and Field Filtering Process

This article explains how MySQL processes a full‑table‑scan query, detailing the construction of read‑sets, template creation, cursor positioning, row conversion to MySQL format, where‑clause filtering, and subsequent row iteration, while highlighting the performance impact of the number of selected fields.

Database InternalsFull Table ScanMySQL
0 likes · 11 min read
Understanding MySQL Full‑Table‑Scan Data Access and Field Filtering Process