Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
inportb
· 15y ago · 0 comments
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.
Comments
[–]
robspychala
15y 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
15y ago
Do you mind sharing the details of that hack ??
[–]
inportb
OP
15y ago
Sure!
https://github.com/inportb/playground/blob/master/Pinako/gev...