Given the statements below, classify each as an advantage or disadvantage of using soft delete in GORM by ticking the correct box.
CRUD Operations – Delete
Soft delete pros and cons
Report a typo
Choose one option for each row
| Advantage | Disadvantage | |
|---|---|---|
| May conflict with data retention laws like the GDPR | ||
| Can lead to slower query performance due to excessive soft-deleted records | ||
| Allows for data recovery if a record is mistakenly deleted | ||
Requires explicit handling with raw SQL queries as constraints like ON DELETE CASCADE will not work | ||
| Allows for keeping historical data for analytics and reporting |
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.