[00:14:46] <JamesHarrison> just downgraded from 2.6.1 to 2.4.10 and all those slow queries taking 1500+ms are now taking 10-20ms again. Guess there's a regression in 2.6 somewhere? Will give it some more time before upgrading and try and reproduce the fault in development
[00:15:08] <JamesHarrison> (performance in dev with smaller test dataset was fine, only saw sudden nosedive in performance when upgrading production)
[02:43:46] <dman777_alter> http://bpaste.net/show/fPV7uQ4fzsfJRKlYSFOT/ when I insert this json string into my database(mongoose mongodb), I get Possibly unhandled TypeError: Cannot read property 'data' of undefined
[02:43:50] <dman777_alter> would the 0 in data: 0 be considered undefined?
[02:47:27] <ehershey> dman777_alter: 0 shouldn't be undefined
[02:47:49] <ehershey> I bet there's some other context that would be useful
[02:48:09] <ehershey> like can you also show the actual code you're inserting it with?
[02:49:42] <ehershey> I can insert that json document using the mongo shell
[02:50:02] <ehershey> or mongoose config if there is such a thing
[02:50:49] <dman777_alter> ehershey: I figured it out...sorry. it was codeing error. Writing strings for model, schema, and the function to create the document can be rather intensive...is there a way to check for contradictions in the syntax? the errors are can be pretty generic and don't give exact locations
[02:52:20] <dman777_alter> ehershey: how do you insert a json document into the mogno shell?
[02:56:50] <dman777_alter> ehershey: thanks. I am new to node js and mongo. What type of logging do you use to a file? Is there a way I can throw errors and have a logger catch it instead of writing logger.warn(), etc?
[03:02:35] <ehershey> sounds like maybe more of a node/mongoose/app style question than I can answer well
[03:03:11] <ehershey> but yeah you should be able to do things like that
[03:07:08] <dman777_alter> usr: the language would be json string/objects with the ability to write custom functions nested in the json properties and such.
[03:07:31] <usr> Yeah I realize that but it doesn't have its own query language?
[03:21:10] <dman777_alter> usr: ya, but I go with the flow :) I liked django alot, wish it was up to date in that area.
[03:21:33] <usr> have you showed your team tornado?
[03:23:37] <dman777_alter> usr: ya.... but it's kinda long story. But I think the websockets implementation is best in Node.js. With uwsgi and such it becomes a little hack ish.
[03:27:22] <usr> My team is switching to mongodb because MySQL relational Databases have become such a pain
[03:29:31] <dman777_alter> usr: I used to do lightweight MySql stuff. I liked it. I like Mongo also...I need to get used to writing really long json objects.
[03:30:00] <dman777_alter> I think my hand was going to fall off from the schemas I wrote
[08:52:10] <deerdancer> i'm trying to use $redact in aggregate command but it throws me an exception showing unrecognized pipeline stage name '$redact'. i couldn't even find this on google! any pointers on this?
[09:02:32] <AlexejK> just a stupid question.. are you on Mongo 2.6?
[09:02:57] <AlexejK> as this is new in 2.6 (just like the doc says)
[09:05:21] <AlexejK> deerdancer, it would also help if you provide the example of a failing command
[09:18:42] <deerdancer> @AlexejK yes, here's the command with it's error - http://pastebin.com/FCjmuHVq
[09:19:27] <AlexejK> can you also please check output of db.version() (when you are in mongo shell).. Both client server I think have to be on 2.6.+
[10:41:05] <srt> Anyone know if I can connect to a mongodb cluster v2.4.5 using a mongos v2.6 on another server?
[15:39:46] <gancl> Hi! Why I can't save mongoose? Users.findOne({"name": sUser if not found new new Users({name: sUser and save. But the client alerts "message":"Cannot call method 'save' of null", although the data is saved
[15:43:42] <gancl> OK now. if (err || userDoc == null) { I should use "else" before save another fuction
[17:08:20] <daidoji> hello, quick question for anyone on
[17:08:54] <daidoji> is BSON a compressed format when using mongodump, or can I get gains from compressing as part of the backup process?
[17:22:23] <michaelchum> Hi, I have a huge collection and I would like to delete certain documents with a specific field and value, i.e. I would like to delete the results of db.collection.find({"myfield":"myvalue"}) , what would be the simplest way to do so? Thanks!
[17:51:55] <daidoji> hmm, I guess not :-( https://jira.mongodb.org/browse/SERVER-5190
[17:52:01] <cheeser> you can dump a whole db at once, iirc
[17:54:33] <daidoji> well I mean I can do mongodump alone which gives me a dump directory, but I'd really like to mongodump -o - | compression program type of thing which doesn't seem possible atm
[19:42:33] <betty> Is it possible to fetch a function from system.js?
[20:04:32] <andrewp> Hey folks, got a question about changing the mongo service entry on windows. Our mongod service currently uses explicit --dbpath and --logpath flags and I'm moving to a config file setup instead. I'm aware that I can have the dev team run reg update hklm\system\...blabla, but if I just had folks re-run the mongod --install with the updated params, would that also work?
[20:24:42] <daidoji> is it really the opinion of Mongo team that we turn atime off?
[20:30:12] <daidoji> cheeser: well yeah, just curious
[20:31:01] <cheeser> half the text around that is "if you have perf problems" so it sounds like you could probably skip it. on the other hand, sounds like a decent preventative measure
[20:31:32] <joshua> On some newer OS the defaults include relatime instead of atime
[20:47:59] <andrewp> A follow up question regarding config files, too
[20:48:10] <andrewp> http://docs.mongodb.org/manual/reference/configuration-options/#config-file-format seems to imply that config files are in YAML
[20:48:22] <andrewp> s/imply/explicitly state/ i guess
[20:48:39] <andrewp> But the examples I've seen, eg debian's
[21:18:16] <daidoji> usr: :-( its asking for user/pass
[21:19:55] <daidoji> I think I'll just go with the hard/soft link solution and see if I run into problems
[21:28:52] <insanidade> hi all. How do I search for documents thar are referenced by a document I already know ?
[21:29:58] <insanidade> I mean: if I peform "Transaction.find()" I get one transaction. I have "requests" stored and all of them are related to that transaction. What syntax should I use to get all the requests related to that transaction?
[21:30:48] <insanidade> "Hey, Mongo: I want all requests referenced by that given transaction"
[21:33:50] <daidoji> insanidade: run another query?
[21:35:08] <insanidade> daidoji: right. I executed the first query (in which I get my 'transactioni' object). then, with that object in hands, I would like to search for all the request objects referenced by that 'transaction' object. So, I run a second query but I'm not sure about its syntax
[21:36:01] <insanidade> this is how I insert my transaction: trans = {ipOrig : '10.10.10.10', portOrig : '4300', ipDest : '11.10.10.10', portDest : '80', startTime : '23432542343', endTime : '345455434'}
[21:36:06] <insanidade> and this is how I insert my request: req = {uri : 'http://foohost/app/test/get_values_001.jsp', transaction : trans}
[21:36:34] <daidoji> insanidade: is that stored as the ObjectID that Mongo generates?
[21:53:30] <daidoji> for each document in the cursor
[22:05:23] <andrewp> I've a question about changing the mongo service entry on windows. Our mongod service currently uses explicit --dbpath and --logpath flags and I'm moving to a config file setup instead. I'm aware that I can have the dev team run reg update hklm\system\...blabla, but if I just had folks re-run the mongod --install with the updated params, would that also work?