The stupid question is the question not asked | |
PerlMonks |
Re: Atomic use of unlink() and SQL DELETE? How?by pboin (Deacon) |
on Feb 09, 2006 at 13:31 UTC ( [id://529072]=note: print w/replies, xml ) | Need Help?? |
If it were me, I'd not kill myself trying to do this perfectly. Getting the atomic transaction right, along with the cascading deletes, etc. seems to not be worth it. Have you considered relaxing your requirements a bit so that the delete will work correctly in all but the most extreme circumstances, and then just running a periodic maintenance job to make sure you're clean on files-to-pointers and pointers-to-files? Perfection is cool, but can be dear to implement.
In Section
Seekers of Perl Wisdom
|
|