April 2026
Beginner
493 pages
23h 2m
English
When managing data, there are two common strategies for deleting rows from a database.
The first option is physical deletion, which occurs via a DELETE statement. We went over that option in Chapter 5, which covered data manipulation language (DML).
Another option is logical deletion, in which the row is not deleted physically. Instead, a column like is_deleted is set to true. The entire application takes this column into consideration and evaluates rows with is_deleted=true as deleted rows, ignoring them in most cases.
Both approaches can be valid in different scenarios. Table B.3 showcases a general comparison.
|
Feature |
Physical |
Logical |
Comments |
|---|---|---|---|
|
Storage efficiency |
Yes |
No |
As entries are physically ... |
Read now
Unlock full access