views:

294

answers:

1

For those of you who have looked at Reddit's source code, where exactly is the logic where it manages the comments hierarchial structure?

I downloaded the code, but couldn't even find the database structure let alone where the reads and writes are for the commenting.

Is it doing updates on lots of comments if someone replies to someone mid-way through a thread?

+2  A: 

The class definition for the Comment model is in r2/models/link.py .

bd808
it looks to be using recursion?
AnonymousCow