Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
inportb
14y ago
0 comments
Share
I use pymongo with gevent. A small hack is necessary to prevent pymongo from making a new connection for each thread that accesses mongodb (because with gevent, you can have a massive number of threads). I'd imagine the same is true with eventlet.
0 comments
default
newest
oldest
robspychala
14y ago
BTW, how is the performance compared to sync pymongo in your use? I'm testing with eventlet and seeing it about 10-20% slower.
https://gist.github.com/1088452
deepu_256
14y ago
Do you mind sharing the details of that hack ??
inportb
OP
14y ago
Sure!
https://github.com/inportb/playground/blob/master/Pinako/gev...
j
/
k
navigate · click thread line to collapse