Reddit的评论系统(分层)
看过Reddit源码的朋友们,它管理评论层次结构的逻辑到底在哪里呢?
我下载了代码,但甚至找不到数据库结构,更不用说用于注释的读写位置了。
如果有人在话题中途回复某人,它是否会对大量评论进行更新?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Comment 模型的类定义位于 r2 /models/link.py 。
The class definition for the Comment model is in r2/models/link.py .