Hey guys, I was wondering if I was the only one having problem with the touch command.
I'm using the shell v2.2.2 and my cluster is a 2.2.1.
It is not totally clear as from where you have to launch the command: mongoS or mongoD. Since I get an error msg when trying to launch it from a mongoS and the word mongod is in bold in the touch documentation. I figure I had to connect directly to mongoD.
What I did:
- Restart the cluster so the RAM is not filled with mongoDB data.
- Launch mongostat, resident memory show 88mb
- Launch the touch command, ex: db.runCommand({touch:"playerProfiles_osload", data:true, index:true})
While still keeping an eye on mongostat, the resident memory is not raising up, I dont see any faults, by looking at MMS I don't see any activity on MMS neither. Basically, nothing have changed.
After that I try a normal db.COLLECTION.find({_id: {$ne: "RANDOM STRING"}}) and I could see the resident memory starting raise.
So guys... where did I failed ?
Simon