Python: 100 connections to MongoDB cause a high cpu usage, Why? -
mongoengine support connect multi mongodb databases.
i write simple code make 100 connections mongodb python script

but, noticed in top , python cause high cpu usage

my cpu:

why ?
and if wanna connect multi mongodb database in python, how correctly ?
i wrote equivalent script using pymongo, , db cpu usage stayed @ 0 300+ connections open.
from pymongo import mongoclient x in xrange(100): mongoclient() try out , see if problem persists? believe it's officially supported python package mongodb.
Comments
Post a Comment