Tag

DELETE

0 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
Jun 8, 2025 · Databases

Why DELETE Is Discouraged in MySQL and When to Use DROP or TRUNCATE

This article explains MySQL's storage architecture, compares the DELETE, TRUNCATE, and DROP commands, shows their performance and side‑effects, and provides practical guidance on choosing the safest and most efficient way to remove data from a MySQL table.

DELETEDROPDatabase Storage
0 likes · 9 min read
Why DELETE Is Discouraged in MySQL and When to Use DROP or TRUNCATE
Sanyou's Java Diary
Sanyou's Java Diary
Jul 15, 2024 · Databases

Why Identical DELETE Statements Can Deadlock in MySQL: A Deep Dive

This article analyzes why two identical DELETE statements on a MySQL table with a unique index can deadlock, explains InnoDB lock types, walks through the execution flow, reproduces the issue with SQL and Java code, and discusses mitigation strategies.

ConcurrencyDELETEDatabase
0 likes · 15 min read
Why Identical DELETE Statements Can Deadlock in MySQL: A Deep Dive
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 3, 2024 · Databases

Analysis of MySQL DELETE Deadlock and Locking Mechanisms

This article examines why identical DELETE statements on a MySQL table with a unique index can cause deadlocks, reviews InnoDB lock types, reproduces the issue with SQL and Java code, and discusses mitigation strategies such as version upgrades, isolation level changes, and distributed locks.

DELETEDatabaseDeadlock
0 likes · 14 min read
Analysis of MySQL DELETE Deadlock and Locking Mechanisms
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 22, 2023 · Databases

MySQL DELETE Statement Alias Support Differences Between 5.7 and 8.0

This article explains why a DELETE statement with a table alias fails in MySQL 5.7, shows the correct syntax without alias, compares the DELETE syntax of MySQL 5.7 and 8.0, and concludes that alias support in single‑table DELETE was added starting with version 8.0.16.

DELETEDatabaseMySQL
0 likes · 5 min read
MySQL DELETE Statement Alias Support Differences Between 5.7 and 8.0
Laravel Tech Community
Laravel Tech Community
Aug 3, 2023 · Databases

MySQL Data Deletion Methods: DELETE, TRUNCATE, and DROP

This article explains the three primary ways to delete data in MySQL—using DELETE, TRUNCATE, and DROP—detailing their execution speed, underlying mechanisms, storage‑engine differences, and best‑practice considerations such as space reclamation and auto‑increment handling.

DELETEDROPDatabase
0 likes · 5 min read
MySQL Data Deletion Methods: DELETE, TRUNCATE, and DROP
Laravel Tech Community
Laravel Tech Community
May 14, 2023 · Databases

Using LIMIT with DELETE: Benefits and Best Practices in MySQL

The article explains why adding a LIMIT clause to MySQL DELETE statements is a recommended habit, detailing performance gains, reduced locking, safer error handling, and practical execution strategies for large‑scale deletions.

DELETEMySQLSQL
0 likes · 6 min read
Using LIMIT with DELETE: Benefits and Best Practices in MySQL
Laravel Tech Community
Laravel Tech Community
Sep 8, 2022 · Databases

Understanding MySQL Data Deletion Methods: DELETE, TRUNCATE, and DROP

The article explains the three primary MySQL data removal commands—DELETE, TRUNCATE, and DROP—detailing their execution speed, underlying mechanisms, impact on disk space for InnoDB and MyISAM engines, and best‑practice usage such as running OPTIMIZE TABLE after DELETE.

DELETEDROPInnoDB
0 likes · 7 min read
Understanding MySQL Data Deletion Methods: DELETE, TRUNCATE, and DROP
Top Architect
Top Architect
Dec 5, 2021 · Databases

Why MySQL Table Size Does Not Decrease After DELETE and How to Reduce It

This article explains why deleting rows in MySQL does not shrink the underlying table file, describes the InnoDB storage mechanics that cause this behavior, and provides practical solutions such as OPTIMIZE TABLE, ALTER TABLE, and Online DDL to reclaim space and avoid table‑locking issues.

ALTER TABLEDELETEDatabase
0 likes · 8 min read
Why MySQL Table Size Does Not Decrease After DELETE and How to Reduce It
Architecture & Thinking
Architecture & Thinking
Dec 1, 2021 · Databases

Master MySQL DML: Insert, Update, Delete, and Truncate Explained

Learn the essential MySQL Data Manipulation Language commands—INSERT, UPDATE, DELETE, and TRUNCATE—including syntax variations, best practices, and step‑by‑step command‑line examples that illustrate single‑row, batch, and conditional operations, plus key differences between delete and truncate.

DELETEDMLDatabase
0 likes · 12 min read
Master MySQL DML: Insert, Update, Delete, and Truncate Explained
Top Architect
Top Architect
Nov 17, 2021 · Databases

Why MySQL Table Size Does Not Decrease After DELETE and How to Reduce It

The article explains why MySQL’s DELETE command does not shrink the physical table file, describes InnoDB’s storage mechanics, and shows how to reclaim space using OPTIMIZE TABLE, ALTER TABLE, and Online DDL options.

ALTER TABLEDELETEDatabase Maintenance
0 likes · 7 min read
Why MySQL Table Size Does Not Decrease After DELETE and How to Reduce It
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 30, 2021 · Databases

Why DELETE IN Subqueries Skip Indexes in MySQL and How to Optimize Them

This article investigates why a DELETE IN subquery in MySQL 5.7 performs a full table scan instead of using an index, explains the optimizer’s behavior compared to SELECT IN, and provides practical solutions such as rewriting the statement as a JOIN or adding table aliases to enable index usage.

DELETEJOINMySQL
0 likes · 6 min read
Why DELETE IN Subqueries Skip Indexes in MySQL and How to Optimize Them
Top Architect
Top Architect
Jul 19, 2021 · Databases

Why MySQL DELETE Does Not Reduce Table File Size and How to Shrink It

The article explains why deleting rows in MySQL does not shrink the physical table file, describes the underlying InnoDB storage mechanisms, and provides practical methods such as OPTIMIZE TABLE, ALTER TABLE, and Online DDL to reclaim space and reorganize the table.

ALTER TABLEDELETEDatabase Maintenance
0 likes · 7 min read
Why MySQL DELETE Does Not Reduce Table File Size and How to Shrink It
Top Architect
Top Architect
Jun 9, 2021 · Databases

Why MySQL DELETE Does Not Reduce Table Size and How to Shrink It

The article explains why deleting rows in MySQL does not shrink the .ibd file because InnoDB only marks pages as reusable, and shows how to reclaim space using OPTIMIZE TABLE, ALTER TABLE, and Online DDL options.

ALTER TABLEDELETEDatabase Maintenance
0 likes · 7 min read
Why MySQL DELETE Does Not Reduce Table Size and How to Shrink It
DataFunTalk
DataFunTalk
May 16, 2021 · Big Data

Efficient Data Update/Delete and Real‑time Processing in the Arctic Lakehouse System

This article explains the evolution from traditional data warehouses to modern lakehouse architectures, introduces the Arctic system’s dynamic hash tree for fast update/delete, describes file splitting with sequence/offset ordering, and compares copy‑on‑write versus merge‑on‑read techniques for achieving low‑latency analytics.

ArcticBig DataDELETE
0 likes · 12 min read
Efficient Data Update/Delete and Real‑time Processing in the Arctic Lakehouse System
Laravel Tech Community
Laravel Tech Community
May 13, 2021 · Databases

Why MySQL Table Size Doesn’t Shrink After DELETE and How to Reduce It

This article explains why deleting rows in MySQL does not decrease the physical table file size, describes the underlying InnoDB storage mechanisms, and shows how to reclaim space using OPTIMIZE TABLE, ALTER TABLE, and Online DDL options.

ALTER TABLEDELETEInnoDB
0 likes · 7 min read
Why MySQL Table Size Doesn’t Shrink After DELETE and How to Reduce It
Architect
Architect
Oct 24, 2020 · Databases

Why Adding LIMIT to DELETE Statements Is a Good Practice in MySQL

The article explains that using LIMIT with DELETE in MySQL improves safety, reduces lock time, prevents long‑running transactions, and enhances performance, and it provides syntax, examples, and expert opinions to illustrate the benefits of this habit.

DELETEDatabase PerformanceMySQL
0 likes · 7 min read
Why Adding LIMIT to DELETE Statements Is a Good Practice in MySQL