PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 16th of April, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[15:13:08] <Pinkamena_D> Hi All, I am trying to insert a large amount of small documents to mongodb through pymongo. I am baffled because using bulk_insert(ordered=false) seems to be much slower than just iterating and doing a bunch of normal inserts. There is only one index on the collection, and mongod process is pegged at 99% cpu (not in D state)
[15:13:22] <Pinkamena_D> Is there anything I can do to speed up the bulk insert?
[15:17:09] <Derick> that makes nosense - the bulk insert ought to be faster
[15:17:33] <Pinkamena_D> Yes, I was surprised
[15:17:35] <Derick> Pinkamena_D: I'd file a bug at https://jira.mongodb.org/browse/PYMONGO with your two examples
[15:17:53] <Pinkamena_D> I was just reading that pymongo 2.6 bulk update is really just the same thing as many single updates though
[15:17:54] <Derick> sorry, at https://jira.mongodb.org/projects/PYTHON/issues
[15:20:09] <Pinkamena_D> oh dammit
[15:20:31] <Pinkamena_D> Just kill me, the execute bulk update was inside the for loop :((((((
[15:20:38] <Pinkamena_D> nvm....
[17:09:37] <ssarah> I have a bunch of machines with a full sharded installation of mongo in production. But I duno the db root user credentials because the guy that built left the company a while ago. How to i reset the password? How do I reset this? I have root on all the involved machines.
[17:15:59] <Iamivan> Hey all I am using mongodb in an electron app. I’m trying to setup reactivity so that when I change data in the db using robomongo or something it will update the db in my app automatically. Any one mind helping me with this? Please.
[17:35:14] <definity> Hi I'm having problems with trying to query my db. what wrong with my query syntax? https://paste.ofcode.org/wSCjLaWpVxjQw85zWx5iuU
[18:18:42] <Derick> definity: you want { "songs.type" : 1 }
[18:19:13] <Derick> Pinkamena_D: :D — glad you found it :)
[18:19:51] <Derick> ssarah: you should be able to restart the nodes without auth enabled, and then create new users/update users
[19:37:00] <ssarah> Derick, they are in production, is this safe? How do I do that?
[19:37:24] <ssarah> in the mongos, config servers or mongo? I have to alter all the .conf files?
[20:20:04] <definity> Derick: Thanks, I gave it a go but i got this message back SyntaxError: missing : after property id @(shell eval):1:21
[20:24:40] <Derick> ssarah: it's not in the .conf files
[20:24:57] <Derick> you will have to do it through mongos I *think*
[20:25:05] <Derick> ssarah: and it's probably not 100% safe
[20:25:16] <Derick> definity: must have made a typo - show the whole query?