cadl
4.77D
V2EX  ›  问与答

关于threaded comment的数据库设计

  •  
  •   cadl · Apr 10, 2013 · 3560 views
    This topic created in 4807 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   ·   5502 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 01:25 · PVG 09:25 · LAX 18:25 · JFK 21:25
    ♥ Do have faith in what you're doing.