in reply to Re^2: Design flat files database
in thread Design flat files database
replies will have an uniq id... Each post will have a file for it's replies.
There is a conflict there. If replies have uniq IDs, then their bodies will exist in the hierarchy, so what will you store in the "file of replies"?
My suggestion would be to store symlinks to the replies in the directory holding the body of the parent. That way, you do not have to traverse the hierarchy from the root to find them (as you would if you store a file containing the reply IDs).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Design flat files database
by AlfaProject (Beadle) on Jul 15, 2011 at 21:15 UTC |