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

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

  •  
  •   plantain · 2015-08-23 22:15:43 +08:00 · 1423 次点击
    这是一个创建于 3199 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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   ·   实用小工具   ·   5342 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 08:08 · PVG 16:08 · LAX 01:08 · JFK 04:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.