Hello,
I have been going through Scoop's source, trying to figure out the
general structure of the code and database. I am particularly interested
in understanding how the comment counter works. Now, I noticed that each
comment is indexed by (sid, cid), where "sid" is of course the story id,
and "cid" seems to be a comment identifier unique *by story* (different
stories will have comments with the same cid).
My question is: when a user submits a new comment, how does the new "cid"
get computed? Do you go through all the existing comments to determine
the highest cid, and then add 1, or is the value cached somewhere?
(Neither the code nor the SQL tables are well documented, so it's hard
to figure this out).
(If possible, point me to the appropriate file/linenumber where this
action takes place).
Thanks in advance for your attention!
Cheers,
C.S.
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433