generated from jackyzha0/quartz
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/v4' into v4
- Loading branch information
Showing
9 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Soft deletion is a technique used in databases where data is marked as deleted but not actually removed from the system. Instead of permanently deleting a record, a "deleted" flag or timestamp is added to it, indicating that the record is no longer active or in use. This allows the data to be retained for historical purposes or potential recovery, while preventing it from appearing in active queries or being accessed by users. Soft deletion provides a way to recover deleted data if necessary, offering an additional layer of protection and flexibility in managing records. | ||
|
||
Soft deletion plays a crucial role in optimizing database performance and management. By marking records as deleted rather than physically removing them, it helps reduce the need for frequent tree rebalances in databases, particularly in systems that use index-based data structures like B-trees. When records are deleted, the tree structure may need to be reorganized to maintain balance, which can be resource-intensive. With soft deletion, this rebalancing is avoided, as the records remain in place, only hidden from active queries. | ||
|
||
Soft deletion can ease the workload on database engines. Since the data isn't actually removed, the database doesn't need to perform expensive operations to physically delete and reclaim storage space. This allows the system to handle more transactions efficiently, without the overhead of constantly adjusting storage or re-indexing after deletions. | ||
|
||
From an audit perspective, soft deletion is particularly valuable. It provides a clear, traceable record of what data was marked as deleted and when, without actually losing the information. This is essential for maintaining data integrity and compliance, especially in systems that require audit trails for legal or regulatory purposes. By keeping deleted records accessible, soft deletion enables administrators to review and recover data if necessary, supporting transparency and accountability in data management. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.