PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 6th of July, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:23:50] <jsheely|2> I've determined that v is simply the oplog version and is a constant within the compiled code and h is the objectID for the document created.
[00:25:54] <jsheely|2> Atleast I thought it's the objectID... Now I don't know.
[00:32:03] <jsheely|2> h = long long lastH; // hash we use to make sure we are reading the right flow of ops and aren't on an out-of-date "fork"
[00:32:33] <jsheely|2> Guess it's just for internal record keeping
[01:13:31] <bdiu> Is there a way to perform a find using TWO geospatial queries?... e.g., {pointA:[x,y],pointB:[x,y]} find({pointA:$geoWithin:{...},pointB:$geoWithin{...}})
[01:13:32] <bdiu> ?
[01:39:04] <jsheely|2> @bdui: Sadly this appears to be a channel ask questions but not get answers. Everyone here appears to be on vacation
[02:04:47] <bdiu> I'm looking to hire a consultant with quite a bit experience w/ the spatial/geo aspects to assist for a few hours... 10gen's $450/hr is a bit steep for my wallet though
[02:04:48] <bdiu> heh
[02:19:45] <jsheely|2> Generally you only need a couple hours though
[02:28:06] <jsheely|2> but $450/hour does seem a little excessive.
[02:31:33] <bdiu> yeah, it's a bit much at this stage for me :-)
[02:34:59] <bdiu> Oh well, I'll be back on here next week asking the same question. Have a good weekend everyone.
[05:11:34] <sigurding> Guys, on the VM I am running MongoDB has a very high CPU utilization (> 90%), but low memory consumption 19%. Any idea why?
[08:20:12] <kosc> Hello! I need to create an integer index for array. Is it possible?
[11:56:54] <jmsbrwr> To anyone familiar with pymongo: any idea why this update isn't updating? http://bpaste.net/show/lX8wAd6zYtkpTHrF9H4q/
[12:05:41] <kali> jmsbrwr: i'm pretty sure it's not a pymongo issue. have you tried it in mongo shell ? the $pull spec looks wrong
[12:06:10] <jmsbrwr> kali: Turns out that passing a document as the spec parameter to .update() won't work. Go figure.
[12:06:29] <jmsbrwr> kali: Using { "_id": document["_id"] } works.
[12:07:05] <kali> jmsbrwr: ha. i know why
[12:07:15] <jmsbrwr> kali: Why?
[12:07:19] <kali> jmsbrwr: it's because the score are float
[12:07:22] <kali> or double
[12:07:28] <kali> so equality does not work
[12:07:45] <jmsbrwr> Oh! Good catch haha
[12:08:17] <jmsbrwr> Luckily, for what I am doing, simply using the _id is fine. Is there a better way to update every document though?
[12:09:37] <kali> you mean, doing the same on every document ? no.
[14:09:41] <CupOfCocoa> Hey guys, I have a sharded cluster of 4 machines, not all databases are sharded though. Now one of the shard instances reports using 8GB or RAM and I have a hard time fathoming what these 8GB or RAM are used for, any way to get some info on that?
[14:11:25] <CupOfCocoa> The main issue is that there is database on this machine (which is not sharded) that does a lot of updates and I see dramatic rises in the lock time %
[16:10:57] <qrada> yo
[16:11:00] <qrada> win 3
[18:29:55] <pngl> I'm learning mongodb, How can I query for exact matches on documents and subdocuments with no sensitivity to the ordering of the fields in the documents/subdocuments?
[18:30:36] <disorder_> hi
[18:30:49] <disorder_> I'm trying to make an app with node.js and mongodb
[18:30:51] <disorder_> http://pastebin.com/985jGcFu
[18:31:13] <disorder_> however I don't know how to pass the db variable to the routing functions
[19:04:48] <jwm> if I have a private network that can only do outgoing connections and I have a public network mongo instance.. can I still do a repli set
[19:05:14] <jwm> I can't access the private from the public without a vpn of sorts
[19:05:30] <jwm> but the traffic can be initiated to the public machine from the private network
[19:25:47] <awpti> jwm, as long as it's going from private to public, sure.
[19:25:55] <awpti> Or just setup a vpn tunnel ;p
[20:05:31] <pngl> Is it possible to run exact matches on document and subdocuments while ignoring the order of the record fields? e.g. having query {a: "a", b: "b"} match documents {b: "b", a: "a"} and (a: "a", b: "b"} but not {a: "a", b: "b", c: "c"}
[20:09:29] <jwm> awpti: yeah I am not allowed to do vpn
[20:09:30] <jwm> :)
[20:10:09] <jwm> I've got a bunch of writes that need to go to a local mongo instance and then migrate over to the public server
[20:10:16] <jwm> since the private server will just have a 40gb ssd
[20:15:39] <jwm> takes awhile to build mongo
[20:15:39] <jwm> hehe
[20:40:18] <gczzzzz> HI, so I am using mongoose and express and am having issues when POSTing to my server. When I post, it is giving me a status pending warning then eventually not posting to the mongo server. Anyone know why this would be happening? I have been searching online and can't find anything
[20:45:26] <David_Connelly> appy124
[20:45:48] <David_Connelly> hello?
[20:47:04] <David_Connelly> Room: I need a hand installing MongoDB on a Mac. I imagine this would involve Teamviewer and I'll be happy to pay for your help via Paypal. Any takers?
[20:49:53] <jwm> heh
[20:50:33] <David_Connelly> hello?
[20:52:48] <jwm> what is the problem
[20:52:57] <jwm> you just download it and uncompress then you are done
[20:54:28] <David_Connelly> that's not my experience, unfortunately
[20:57:38] <David_Connelly> I installed with homebrew and when I enter 'mongo' in the terminal, I get this...
[20:57:39] <David_Connelly> 21:56:48.762 JavaScript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112
[20:57:56] <David_Connelly> …perhaps it has something to do with creating data and db folders. I have no clue
[20:58:54] <ehershey> David_Connelly: try just running: mongod
[20:59:44] <ehershey> to start the backend
[20:59:49] <ehershey> then the mongo shell should be able to connect
[20:59:57] <ehershey> I don't think for homebrew you have to set up any folders for it
[20:59:59] <ehershey> I think it does it for you
[21:00:03] <ehershey> but it doesn't start the db server
[21:00:44] <David_Connelly_> oops, I got disconnected
[21:02:54] <ehershey> I yammered for about 6 lines
[21:02:56] <ehershey> did you see any of it?
[21:03:22] <David_Connelly> sorry, I missed it
[21:03:47] <ehershey> the main thing was that I think homebrew sets everything up for you folder/config-wise, but doesn't start the db server
[21:03:53] <ehershey> so all you should have to do is run mongod
[21:04:02] <ehershey> and then run mongo
[21:04:16] <David_Connelly> run mongod and then run mongo?
[21:04:50] <ehershey> try: mongod &
[21:04:52] <ehershey> then mongo
[21:05:10] <David_Connelly> okay
[21:05:40] <David_Connelly> It just says "all output going to: /usr/local/var/log/mongodb/mongo.log"
[21:05:59] <ehershey> it should probably be more explicit
[21:06:05] <ehershey> but that should mean it's running
[21:06:15] <ehershey> you can check that file to be sure, or run mongo
[21:06:16] <David_Connelly> so, just do clarify...
[21:06:38] <David_Connelly> mongod gets it to start up
[21:07:02] <David_Connelly> and when you type mongo, at that point the terminal is ready to accept mongodb commands
[21:07:05] <David_Connelly> have I got that right?
[21:07:32] <jwm> yes
[21:08:24] <David_Connelly> Okay. How much would you like for 30 minutes on Teamviewer, because I'm having all sorts of problems here?
[21:10:50] <jwm> god I just built mongo from source for ssl and forgot the win2008 extra option heh
[21:10:58] <jwm> another 20min gone :P
[21:14:12] <ehershey> David_Connelly: sorry I can't do a teamviewer session but I will help all you want for free here and via pastie.org
[21:14:33] <ehershey> did mongo run?
[21:14:43] <ehershey> or is it not letting you get that far
[23:11:19] <nicholasdipiazza> in general... how does one go about doing indexing when connecting to mongo db from a java api. do you do a "if db.mycollection doesn't exit, then do ensureIndex on it "?