[02:31:09] <ron_frown> I am building a system from scratch and really really considering mongo... the one and only thing I dont know about is what the reporting requirements will be down the road
[02:31:23] <ron_frown> I am looking at a couple of the aggregation framework queries
[05:02:48] <ngoyal> have the issues brought up by aphyr back in 2013 been addressed or are there recommendations that don't kill performance? http://aphyr.com/posts/284-call-me-maybe-mongodb
[06:13:55] <amitprakash> Hi, how do I query for a field whose value is either False or null[including those documents where the field does not exist]
[07:19:14] <Faisal> I want to use Django with mongo db. can you guys suggest a future proof solution to do so ? I am using http://django-mongodb-engine.readthedocs.org/en/latest/index.html
[07:19:31] <Faisal> how ever its dependent django-non-rel. so some of my collegues suggested not to go for this as django-non-rel is deprecated
[07:20:23] <Nodex> I don't use Django sorry can't help
[12:23:15] <goldstar> I am running v2.6 and keep getting "Can't canonicalize query: BadValue $in needs an array" when using a 3rd party webapp. It appears mongo doesnt like it when an array starts from 0; is there anyway to disable this 'strictness' ?
[12:28:00] <joannac> goldstar: maybe you should check with the devs of the app then, if they're generating bad queries?
[12:29:14] <rspijker> “when an array starts from 0”. That makes little sense in the way mongo arrays behave… You don;t explicitly provide indices. An array is just, a list, really…
[12:29:15] <joannac> although i also don't know what 'strictness' you're talking about...
[12:29:22] <rspijker> are you maybe passing in the wrong thing goldstar ?
[13:08:10] <nicolas_FR> Hi there ! I'm new to mongodb. Using node.js + mongodb + monk, I can't do an update. It works from mongo console, but not from my node code. Could someone point me to a good monk doc for update (found some but can't understand it...)
[13:10:00] <Nodex> perhaps pastebin your query and someone might be able to help you
[13:20:27] <rspijker> probably because it doesn’t know save()...
[13:20:48] <nicolas_FR> rspijker: because (I think) my call for update is false.. but can't find a proper way to update _id:1 with all the JSON object passed through ajax call
[13:20:55] <Nodex> nicolas_FR : If I were you I would learn Mongodb native first, this layer (in my opinion) will hinder your knowledge as you learn as it abstracts some important basics away from you
[13:22:08] <rspijker> nicolas_FR: monk has an updatemethod. It takes a search document (_id:1 for you), and update document, $set:{fields and values you want to set here}, an options doc (not needed in this case) and your standard javascript callback mumbojumo
[13:28:33] <nicolas_FR> rspijker: so I should be fine with : db.get('indicateurs').update('1',{$set:req.body},function(err,results){ no ? Fact is I still get the error. Searching in your docs
[13:34:00] <Nodex> nicolas_FR : no and it's VERY dangerous to do that
[13:34:29] <Nodex> you MUST unset the _id part of your $set statement
[13:35:53] <rspijker> nicolas_FR: yours looks more like the updateById
[13:36:03] <rspijker> that takes an id as the first argument
[13:36:16] <rspijker> you still need to remove it from the req.body though
[13:37:52] <nicolas_FR> rspijker, Nodex : so maybe do a {$set:{'field1':'value1','field2':'value2'} } ?
[13:38:10] <rspijker> that is what your set should look like, yes
[13:40:38] <nicolas_FR> damn it : db.get('indicateurs').updateById('1',{$set:{'indic1':'40'}},{},function(err,results){ still crashing :(
[13:48:28] <rspijker> req is an argument to the put function there
[13:49:20] <rspijker> I’m no node.js guy unfortunately, so I’m just applying general programming knowledge here and hoping it makes some modicum of sense
[13:49:38] <nicolas_FR> rspijker: well, tutorial was saying to pass the db to all the routes files doing so. As get and post works, I was thinking my put would work the same
[13:50:28] <rspijker> maybe it does, like I said, I’m no node expert
[13:50:50] <rspijker> what do you get if you console.log(db) inside of the put before the update?
[14:55:07] <cheeser> trivial == my working solution. complex == your solution i have to learn.
[14:56:10] <Faisal_> Hello guys, I want to use Django with mongo db. can you guys suggest a future proof solution to do so ? I am using http://django-mongodb-engine.readthedocs.org/en/latest/index.html
[14:56:26] <Faisal_> how ever its dependent django-non-rel. so some of my collegues suggested not to go for this as django-non-rel is deprecated
[15:34:27] <jonyfive> hi all. i'm running mongodb 2.6.1 and i am trying to go through the "Little MongoDB Book" examples, but when i run this command: db.unicorns.find({_id: ObjectId("TheObjectId")})
[15:34:37] <jonyfive> i get: 2014-07-22T23:21:09.965-0600 Error: invalid object id: length
[15:34:49] <jonyfive> any ideas what might be wrong?
[15:38:37] <kali> jonyfive: objectids are 128 bit integer. ObjectId() construct such a 128 bit integer from a 32 character hexadecimel string
[15:39:08] <jonyfive> ahh so i was supposed to replace "TheObjectId" with that 32 char hex str?
[15:40:15] <jonyfive> kali: ahh yes, that does work now, thanks!
[15:40:25] <kali> jonyfive: or just use string _id. you can use anything as your _id, it does not have to be an ObjectId
[15:50:47] <rspijker> kali: isn;t it 24 character hex string? :/
[15:53:43] <B166IR> jup and that makes them ah 36 bit id
[16:03:19] <rpetre> hello, i'm working on an archival script that's supposed to do a mongoexport for a date interval then remove() the same selection. anyone done this? is the return code of mongoexport a reliable indication that it got all data so i can delete it?
[16:03:54] <rspijker> garbados: and if you just check the oplog by hand? Do you see the updates?
[16:04:04] <rspijker> I am presuming you do have a replica set setup btw?
[16:04:27] <garbados> rspijker: i do, or i think i do. started mongod with `sudo mongod --replSet someArbitraryName`
[16:04:39] <garbados> rspijker: i’m not sure how to check the oplog by hand
[16:05:41] <rspijker> log in to mongo (just type mongo from command line) and do: use local <return> db.oplog.rs.find() <return>
[16:06:03] <rspijker> on the same host you’re running mongod from, obviously
[16:16:37] <kali> s2013: if your file does assume the expected format (one document per file) you can use "split" to split it into smaller pieces and try one chunk at a time
[16:16:49] <kali> s2013: sorry, one document per line, not one document per file
[16:22:47] <s2013> kali, Wed Jul 23 16:16:07.796 exception:JSONArray file too large
[17:17:18] <talbott> when creating a new mongo connection in javascript
[17:17:23] <talbott> archiveConnection = new Mongo("localhost:27017");
[17:17:31] <talbott> do you know if there's a way to pass the username/password into this
[17:18:29] <disappearedng> Is it better to have 2 Entities: WaterPoints, SoilPoints, rather than 1 (Point, type:SOIL/WATER) if they all have different attributes?
[17:18:33] <zapparappa> Mongo n00b and want to make sure I understand querying. In a database of movies, this would return Adam Sandler films from 2001 and up, right?
[18:00:42] <shinka> Using NodeJs and Mongoose, I'm struggling to exclude fields with mongoose and an "or" , since I'm not getting any error I have no idea what I'm doing wrong. My query is return this.find().or(...).exec(cb) (of course with something more meaningful in place of '...'), and it works. To exclude _id and __v from all the results in the array I tried: return this.find().or(..., { _id: 0, __v: 0 }).exec(cb);, but it continues to return an array of objects with _id a
[20:13:15] <nycdjangodev> hey guys. I am very new to mongodb. How to I change my authorization level to allow me to remove entries? Current error: pymongo.errors.OperationFailure: unauthorized for db:<dbname_redacted> level: 2
[20:43:07] <stangeland> Hi, i am looking in the mongodb documentation, and i see this line: "Considerations: For production deployments, always run MongoDB on 64-bit systems. You cannot install this package concurrently with the mongodb, mongodb-server, or mongodb-clients packages provided by Ubuntu." Does that mean that mongodb does not work on ubuntu systems?
[20:45:20] <Gargoyle> stangeland: What that means is that you cannot install the mongo packages that come with the ubuntu distro and the ones direct from mongodb.org at the same time.
[20:46:06] <stangeland> Gargoyle, ahhh ok, so i shoiuld use the ones from mongodb.org
[20:46:14] <Gargoyle> stangeland: You are best of following those instructions and using the mongodb.org packages anyway. The ubuntu distro ones are always out of date.
[20:48:25] <stangeland> Gargoyle, ahh ok. I have a big-data kinda system with terabyte size hdf files full of data. How do you think that would be a good idea to couple with mongodb?
[20:49:21] <Gargoyle> MongoDB and hadoop don't cover the same use cases.
[20:49:51] <stangeland> ok, i am not using hadoop.
[20:50:04] <stangeland> im using hdf files which has nothing to do with hadoop
[20:50:25] <Gargoyle> To get the best performance from Mongo, you want your "working set" to fit in memory. So I guess that depends on what portion of the 1TB is "active".
[20:50:36] <stangeland> hadoops filesystem is called HDFS