Tag

INSERT INTO SELECT

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
Laravel Tech Community
Laravel Tech Community
Jun 2, 2024 · Databases

Lessons Learned from Misusing INSERT INTO SELECT in MySQL: A Postmortem

An in‑depth postmortem of a costly MySQL data‑migration failure caused by using INSERT INTO SELECT without proper indexing, detailing the OOM issue, full‑table scans, lock contention, and best practices to safely employ the statement.

INSERT INTO SELECTLock ContentionMySQL
0 likes · 7 min read
Lessons Learned from Misusing INSERT INTO SELECT in MySQL: A Postmortem
Java Architect Essentials
Java Architect Essentials
May 30, 2024 · Databases

Beware of INSERT INTO SELECT: A MySQL Data Migration Incident and Lessons Learned

This article recounts a costly MySQL data‑migration failure caused by an unchecked INSERT INTO SELECT operation, analyzes why full‑table scans and transaction isolation led to payment‑record loss, and offers practical safeguards such as proper indexing and careful use of the statement.

INSERT INTO SELECTIndexingMySQL
0 likes · 7 min read
Beware of INSERT INTO SELECT: A MySQL Data Migration Incident and Lessons Learned
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
Java Tech Enthusiast
Java Tech Enthusiast
May 9, 2024 · Databases

Risks of Using INSERT INTO SELECT in MySQL: A Postmortem

Using MySQL’s INSERT INTO SELECT on a large, unindexed table caused full‑table locks that timed out concurrent transactions, leading to lost payment rows; the post‑mortem shows that adding appropriate indexes to the WHERE clause and understanding locking behavior prevents such intermittent failures.

INSERT INTO SELECTMySQLTransaction Isolation
0 likes · 6 min read
Risks of Using INSERT INTO SELECT in MySQL: A Postmortem
Java Captain
Java Captain
May 8, 2024 · Databases

Lessons Learned from Misusing INSERT INTO SELECT in MySQL Data Migration

A real‑world MySQL case study shows how using INSERT INTO SELECT for large‑scale data migration without proper indexing caused full‑table scans, lock contention, and data loss, highlighting the need for careful query planning and performance testing.

INSERT INTO SELECTIndexingMySQL
0 likes · 6 min read
Lessons Learned from Misusing INSERT INTO SELECT in MySQL Data Migration
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
Selected Java Interview Questions
Selected Java Interview Questions
Nov 13, 2023 · Backend Development

Lessons Learned from Misusing INSERT INTO SELECT for MySQL Data Migration

A real‑world case study shows how using INSERT INTO SELECT without proper indexing caused full‑table scans, lock contention, and data loss, ultimately leading to a costly incident and a colleague's dismissal.

INSERT INTO SELECTIndexingMySQL
0 likes · 7 min read
Lessons Learned from Misusing INSERT INTO SELECT for MySQL Data Migration
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
Architect's Tech Stack
Architect's Tech Stack
Aug 30, 2020 · Databases

Case Study of Insert‑Into‑Select Migration Causing Table Locks and Its Resolution

This article analyzes a real‑world incident where using INSERT INTO SELECT to migrate large order data caused full‑table scans and locking in MySQL, explains the underlying lock behavior, and presents a solution that adds an index and forces its use to avoid the problem.

INSERT INTO SELECTMySQLSQL
0 likes · 6 min read
Case Study of Insert‑Into‑Select Migration Causing Table Locks and Its Resolution
Top Architect
Top Architect
Aug 3, 2020 · Databases

Case Study: Insert‑Into‑Select Migration Failure and Resolution in MySQL

This article analyzes a real‑world MySQL incident where using INSERT INTO SELECT to migrate billions of rows caused table‑wide locking and payment failures, explains the underlying locking behavior, and presents a solution using proper indexing and FORCE INDEX to avoid full‑table scans.

INSERT INTO SELECTIndexingMySQL
0 likes · 7 min read
Case Study: Insert‑Into‑Select Migration Failure and Resolution in MySQL
macrozheng
macrozheng
May 9, 2020 · Databases

Why Insert‑Into‑Select Can Lock Your MySQL Tables and How to Fix It

An engineer’s mishap with a massive ‘INSERT INTO … SELECT’ migration exposed how full‑table scans lock MySQL tables, causing payment failures, and shows that adding an index on the filter column prevents the lock and ensures safe, efficient data transfer.

INSERT INTO SELECTMySQLdatabase migration
0 likes · 7 min read
Why Insert‑Into‑Select Can Lock Your MySQL Tables and How to Fix It