c# - MongoDB very slow read performance on server -
c# - MongoDB very slow read performance on server -
basically, have windows service performs batch job.
i have 2 collections related, customeraccounts , events. events collection logs actions customers performed on site, containing timestamp, name of event, page occurred on , username.
the service runs through each business relationship , works out journey phase , risk of business relationship closure based on events have in events collection , set of user-defined rules.
there 3,500 accounts , around 100,000 events in database @ present. service takes on 1 min run on development pc, takes seemingly forever on server (i've estimated takes 2.5 hours based on modifying service performs job on single client account.
my machine core i7 16gb of ram, server intel xeon e5-2609 (64bit, win 2008 r2) 24gb of ram. set database on much older server (32bit, windows 2003) , service took 2 minutes run. so, know on dev machine takes on minute, , on older server hardware takes on 2 minutes, yet on modern server it's taking matter of hours.
originally, mongo shell warning numa enabled on server , should switched off avoid performance problems. has since been turned off hasn't seemed have impact on performance.
when run db.currentop(); on server, i've noticed it's got query "createindexes" of nature (the indexes created ages ago), yet when mongodump/restore database dev machine , run service/currentop, "createindexes" query isn't there. apart that, nil else seems jump out @ me.
does have ideas / help on mysterious performance issue? i'll post currentop/mongostats if/when required.
quick answer: re-installed mongo. no fancy configuration, ran setup , fixed issue.
i never worked out why mongo creating indexes. log file 0.25gb single day total of event logs "creating index".
c# mongodb
Comments
Post a Comment