PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Friday the 21st of August, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:45:21] <josef32> hi, can someone help me with a mapreduce problem im running into using the nodejs driver?
[00:48:18] <josef32> anyone?
[00:48:34] <MacWinne_> is there a way to convert a regular index to a sparse index? or do you just need to drop and recreate teh index?
[00:50:28] <josef32> im trying to execute a mongo mapreduce function, but it needs parameters from nodejs and also functions defined in node, is that possible?
[00:55:26] <cheeser> MacWinne_: you have to recreate it
[01:07:52] <josef32> ok, and how can i do that with external parameters?
[01:08:12] <josef32> so the values can change
[01:09:05] <josef32> for example, i need to have the total working time for 1 specific employee, the parameter employeeid and the startdate and enddate are dynamic
[01:09:29] <josef32> the function is fixed now, thanks by the way, but the parameters are still not working
[01:12:23] <josef32> i found a solution, but really thanks for the help :)
[01:12:55] <cheeser> happy to help? :D
[01:59:54] <dcslv> hello guys, i work at a company with a very bad mongo installation and we are looking for a consultant to help get us in a better place. Can someone point me in the right direction to find that person?
[02:07:15] <cheeser> dcslv: mongodb.com
[02:43:47] <BigOrangeSU> does anyone know how to read a bson mongodump file in python?
[03:57:09] <damoncasale> Is this a good place to ask Mongoose-related questions, or is there another channel for that?
[03:57:49] <damoncasale> I found some help on Stack Overflow that doesn't appear to work, and I wanted to ask about it.
[09:24:30] <d-snp> my mongod doesn't respond to kill
[10:10:57] <d-snp> it was just slow
[13:56:37] <d-snp> we had some mongod instances that hadn't rebooted for 4 weeks, and rebooting them made inserts on our cluster much faster
[13:56:55] <d-snp> is there a known problem with write performance diminishing over time? (for wiredtiger)
[13:57:24] <StephenLynx> I know there are issues with WT, thats' why it won't be the default engine until 3.1
[13:57:40] <d-snp> hm ok
[13:57:55] <StephenLynx> so you might want to check it again when 3.1 comes out
[14:52:40] <hackeron> hey, I have many (slow) queries like this - any suggestions how to speed such a query up? - will indexing something like starts_at help? < QUERY [conn17] query timeline.events query: { $query: { starts_at: { $lte: new Date(1440168395000) }, ends_at: { $gte: new Date(1440168395000) } }, $orderby: { _id: 1 } } planSummary: IXSCAN { _id: 1 } ntoskip:0 nscanned:77952 nscannedObjects:77952 keyUpdates:0 write
[14:52:46] <hackeron> Conflicts:0 numYields:609 nreturned:1 ...
[14:52:48] <hackeron> ... reslen:357 locks:{ Global: { acquireCount: { r: 1220 } }, Database: { acquireCount: { r: 610 } }, Collection: { acquireCount: { r: 610 } } } 559ms
[15:55:37] <diegoaguilar> Hello, I got this command to delete all databases from command line
[15:55:38] <diegoaguilar> mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})'
[15:55:49] <diegoaguilar> how can I make it delete some certain databases instead?
[15:56:58] <StephenLynx> use mydb
[15:57:04] <StephenLynx> db.dropDatabase()
[16:00:00] <cheeser> :D
[16:00:24] <cheeser> diegoaguilar: add an 'if' to filter out the dbs you want to keep
[17:42:03] <schmichael> is there a way to enable the oplog on a standalone mongod without restarting it?
[17:43:26] <schmichael> in 2.6
[17:48:40] <deathanchor> is there a a way in the script.js you run with mongo to use the existing from the command line args?
[17:51:21] <deathanchor> ah nevermind, I can use --nodb arg
[18:15:42] <webuser20> Good morning. Is there a way to close a connection using the Ruby driver? I am having some issues with connections not being closed/reused
[20:19:24] <INIT_6_> Hi, I was wondering if someone could help me out determine if MongoDB 3.0x has a different reply for heartbeat. http://serverfault.com/questions/521965/how-can-i-filter-mongodb-replica-set-heartbeats-with-tcpdump Seems like it just now replies with ok (6f:6b) but Having a hard time creating a filter for it in wireshark if its even the right thing to look for. Thanks for any advice/help.
[22:37:51] <bodqhrohro1> If a cursor returned by 'find()' definitely has no results 'next()' called on it no matter returns some strange result with _id: 2. And therefore 'hasNext()' returns 'true' in this case. What is it?
[22:39:58] <bodqhrohro1> { _id: 2, _state: undefined, _result: undefined, _subscribers: [] } to be exact
[22:41:22] <cheeser> /1/6
[22:46:43] <Derick> cheeser: 1/6 to you too
[22:51:42] <Boomtime> bodqhrohro1: are you using the mongo shell? also, can you pastebin the output from db.collection.stats() (replace 'collection' with your collection name)
[22:56:53] <bodqhrohro1> Boomtime: I'm using the 'mongodb' module for Node.js (DB.collection('users').find({"email": req.body.email}).next()). There seems to be no such problems in the shell. Stats: http://pastebin.com/ZXCKUUDV