[04:00:44] <maodun> I just installed the mongodb ubuntu package - will it by default only accept connections from localhost? if not, how can I configure it to only talk to localhost?
[04:04:04] <maodun> ah, sorry, it looks like this has already been done for me bind_ip = 127.0.0.1
[04:32:48] <carsten> grrrrr.....this bot is still there
[04:32:57] <carsten> perhaps time to boycott this channel
[14:43:57] <NodeX> Best to use console/shell tbh - much more flexible
[14:45:09] <carsten> only numpties use the console
[15:38:39] <solars> hey, quick question, I want to map/reduce and retrieve the last record (timestamp) in each group, therefore I have: https://gist.github.com/7eb028eec863bc1e56e5 - however, I think the timestamp comparison is somehow wrong, it works but I cannot find certain results, does anyone know whats wrong with this short snippet?
[15:48:33] <timkuijsten> is it possible to specify a per user configuration file for the mongo client? i'd like to store the passwords in it instead of specifying it on the command line
[15:50:40] <mw44118> Hi -- I have a question. I'm counting all the documents in a collection, and the query takes a really long time. I'm using mongoengine, which is a python wrapper for mongo, and I'm running this query: ms.MyCollection.objects.count()
[15:51:36] <mw44118> I understand that doing len(ms.MyCollection.objects()) is slow because it would pull ALL the data out of mongo, then make objects for them all, then count the number of elements in that list, but I don't understand why the .count() method is taking so long.
[16:00:08] <dgottlieb> mw44118: can you confirm that MongoEngine isn't doing that worst case scenario under the hood?
[16:08:13] <solars> can anyone tell me when map/reduce returns a value of null? I don't get that (the value attribute of the document in the returning collection)
[16:10:15] <mw44118> dgottlieb: I can not confirm that. If I wanted to get a count of documents in a collection at a mongo query, how would I do that?
[17:20:34] <bikcmp> in a sense it isn't independant?
[17:20:50] <ukd1> the goal is ~1k shards according to docs
[17:45:51] <elarson> does the $set update modifier only allow updating one field at a time? ie does {$set: {foo: "Foo", bar: "Bar"}} set the foo and bar attributes on the document?
[17:47:13] <elarson> sorry if I missed it in the docs. I didn't see it specified and I have an issue in a test where it looks like it doesn't update each field, just the last one (bar in the example above)
[17:48:21] <rhqq> hey. what should i do after i change nssize ?
[17:48:28] <rhqq> to apply it to existing databases
[17:53:08] <mw44118> does anyone offer hosted mongo?
[17:54:54] <linsys1> yea there are a few mongodb services out there
[17:58:53] <rhqq> hey, when i have dots in collection name, does mongo assumes each part as different namespace? like database_name.some.collection.name.4 will be 5 namespaces?
[18:08:07] <multi_io> can I query by value-of-array-element, e.g. db.mycoll.find({"arr[0].textattr": "foobar" }) ?
[18:10:06] <multi_io> (i.e. querying for documents with an attribute arr which is an array whose 0th element is a document with a string attribute named textattr and value "foobar")
[18:19:28] <dgottlieb> multi_io: {'arr.0.textattr': 'foobar'} I think does what you want
[18:41:46] <multi_io> dgottlieb: well, it doesn't for me. But I got a very outdate mongodb here. :\
[18:42:03] <multi_io> I'll try it later on a newer version.
[20:06:10] <avdeveloper> okay so I just finished reading embedding vs references. I understand how they work. Now I just wonder if it's a good practice to embed a select few attributes of the Player document such as name and id into a Game document so that fetching a Game data would be faster than having two separate calls?
[20:20:33] <bluesnow> Hi, I'm wondering how I would automatically start a MongoDB instance on a server when a Python web application starts.
[20:25:33] <sirpengi> bluesnow: is there a reason mongodb can't be on all the time?
[20:25:44] <sirpengi> I mean, is your web app not on all the time either?
[20:27:30] <bluesnow> Yeah, it won't be on all the time.
[20:28:25] <bluesnow> Maybe I could use some config initialization file with the web app?
[21:44:49] <tystr> I'm sure this has been asked before, but in a collection of docuoments, what's the best way to ensure that embedded documents in the collection all have unique ids?
[21:52:46] <hell_razer> hello all, is any gui viewer for mongodb?