in reply to Flock to Rename Directory
Also look at the penalty of large directories. Some filesystems degrade after a certain number of files.
I would agree with others that avoiding a database of one form or another is not necessarily the best course of action. The file system, after all, is just being used in this case as a database.
Please consider supporting my wife as she walks in the 2009 Alzheimer's Walk.