Groups
Groups
Sign in
Groups
Groups
cnodejs
Conversations
About
Send feedback
Help
在使用mongoskin的时候,要用到连接池吗?
32 views
Skip to first unread message
MK2
unread,
Sep 4, 2011, 11:54:21 AM
9/4/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cnodejs
其实我一开始还没去想这个问题的,后来有同事问,我也很疑惑。
之前写的几个小项目,都是直接在进程启动的时候,就连上mongodb,然后维持住。
是否mongoskin本身就带有连接池的?还是说我们需要自己去实现一个连接池?
虽然我之前的小项目访问量还不足够大,但是并发数肯定不少的,不过也没出现数据库连接阻塞的情况。
MK2
unread,
Sep 8, 2011, 6:57:28 AM
9/8/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cno...@googlegroups.com
一个通用的连接池
https://github.com/coopernurse/node-pool
---------------------------------------------
MK2, FaWave, Net4Team
TEL:
18668079069
微博: @Python发烧友
Twitter: @fengmk2
Blog:
http://fengmk2.cnblogs.com
Reply all
Reply to author
Forward
0 new messages