Lazy Reclamation
A resource cleanup strategy that does not proactively delete expired data on a periodic basis, but instead evaluates and cleans up along read or write paths, so that failure of the cleanup process does not affect correctness.
Timeline (last 90 days)
Lazy reclamation is a strategy of not actively deleting expired data periodically, but instead judging and cleaning it incidentally on the read or write path; its advantage is that cleanup is decoupled from access, so correctness is unaffected even if the cleanup process never runs.
Lazy reclamation is usually combined with read-time validation: the read path is responsible for semantic correctness (expired means invisible), while the write path or a low-frequency background task is responsible for physical reclamation; the cost is that expired rows may continue to occupy storage and unique constraints, so a reclamation task should still exist but only as an optimization rather than a correctness dependency.
All Facts (2)
Lazy reclamation is a strategy of not actively deleting expired data periodically, but instead judging and cleaning it incidentally on the read or write path; its advantage is that cleanup is decoupled from access, so correctness is unaffected even if the cleanup process never runs.
50%UnverifiedLazy reclamation is usually combined with read-time validation: the read path is responsible for semantic correctness (expired means invisible), while the write path or a low-frequency background task is responsible for physical reclamation; the cost is that expired rows may continue to occupy storage and unique constraints, so a reclamation task should still exist but only as an optimization rather than a correctness dependency.
50%