by globular-toast · 5mo ago · 0 comments
Because your data structure/algorithm supports fast deletes? File systems support deleting entire directories instantly. I'm not aware of any fundamental reason why DELETE in a SQL database must take as long as an insert?
What file system supports this? I’ve never experienced the joy of deleting an entire large directory and seeing it disappear instantly.
I’m not sure how this would work with any modern file system that supports basic notions like hard links.
And file systems deleting huge directories instantly is the equivalent of DROP TABLE here, which I also mention in my comment.