Just spotted serious flaw in my design. This is simplified to demonstrate:
For a blog type thingy:
Topics
id ¦ title ¦ description
Text
id ¦ parent ¦ timestamp ¦ text
Works great untill you realize that the starting post for any topic has potentially multiple values.
EX: if I try to find the text for topic 34 I can just find the matching entry for parent in the text table. But if there are replies to the topic it will return more than one row.
I could use the timestamp of course but what if I splice or combine posts for some reason? - Not good enough is it?
So, what's the most efficient way to do this properly? - I just can't figure it...
Many thanks..
Nick