cadl
8.77D
V2EX  ›  问与答

关于threaded comment的数据库设计

  •  
  •   cadl · Apr 10, 2013 · 3504 views
    This topic created in 4782 days ago, the information mentioned may be changed or developed.
    想实现类似hacker news的那种树状评论,我的想法是可以记录一个parent_id然后用递归查询的方式获得评论树,或者使用nosql例如mongodb处理这种情况。搜索之后还发现了一些别的实现方式。想请教一下大家对于这种问题上的经验。包括性能方面上的考虑什么的。谢谢~
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5911 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 03:06 · PVG 11:06 · LAX 20:06 · JFK 23:06
    ♥ Do have faith in what you're doing.