V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
plantain
V2EX  ›  问与答

使用 mongodb 时,在 connect、authenticate 之后获得的 db 是操作完就 close,还是一直留着重用?

  •  
  •   plantain · 2015-08-23 22:15:43 +08:00 · 1420 次点击
    这是一个创建于 3183 天前的主题,其中的信息可能已经有所发展或是发生改变。
    node-mongodb-native
    1 条回复    2015-08-23 22:51:16 +08:00
    stiekel
        1
    stiekel  
       2015-08-23 22:51:16 +08:00
    我是一直留着,从来不主动去 close 。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3653 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:59 · PVG 12:59 · LAX 21:59 · JFK 00:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.