V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cadl
8.77D
V2EX  ›  问与答

关于threaded comment的数据库设计

  •  
  •   cadl · Apr 10, 2013 · 3461 views
    This topic created in 4769 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   ·   2474 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 08:05 · PVG 16:05 · LAX 01:05 · JFK 04:05
    ♥ Do have faith in what you're doing.