[02:06:52] <philosonerd_____> Can someone tell me how I can access my local database without getting: "login failed". Why do I get this? I thought it was default with local access no matter of authentication. I also tried with my username and password that I previously set, but it seems to have forgotten about that....
[05:05:58] <zachcowell> can anyone tell me of a simple way of setting field types to ints? it looks like after i did a mongoimport it set everything to string
[11:57:03] <farrukhayub> i mean i am doing fabric script with install mongodb and other things, I want to be able to setup auth options via that script too
[11:57:15] <farrukhayub> instead of using mongo shell
[13:04:39] <asido> size exceeds the allocated space for that document, MongoDB relocates the document on disk.
[13:05:26] <asido> ". why is relocation necessary? I somewhat find it hard to understand as space on disk is not something like a space returned by malloc(). shouldn't filesystem handle that?
[13:11:45] <megawolt> i'm just a MongoDB Admin not o MongoDB officer...
[13:50:32] <siaw> Hi, I'm trying to convert a project of mine from mysql to mongodb. In mysql i had two tables: Games and Players, where each game could have many Players. Now in mongodb should I use one collection of Games with an array of Players?
[13:54:05] <megawolt> at the anotharnd don't forget that; array queries will you give document not the parent of array
[13:55:35] <siaw> ehm, can you dumb that down a bit? :)
[13:57:41] <megawolt> ehhmm...you have a documenyt like; {name:"foo",game:{name:"foogame",Players : [1000,2000]]}}
[13:58:35] <megawolt> query result will gave that document
[13:59:21] <megawolt> not exact Player[int] element
[13:59:51] <siaw> yeah ok, but that shouldn't be a problem?
[14:02:15] <megawolt> sometimes yes, but nothing impossible in application level :)
[14:02:40] <megawolt> we have stacked a little about that...
[14:13:02] <siaw> ok another question, if a document in my collection for example { gameid:1, players:[ { player:1, kills:2 }, { player:2, kills:3 } ] } How would I get the average kills/game for each player?
[14:14:44] <megawolt> that's a little complicated but you'll have your answer in aggregated framework :)
[14:15:19] <megawolt> you can really get result faster and have math. functions live sum(), avg()
[14:52:09] <farkore_> Hi all! I'm a newbie in mongodb,and I have a question that google has not responded me correctly, probably because I don't know how to ask him. I am here because is my last chance. My Question is: I have many report documents that are hierarchically structured and exists a "principal document" called "Reporte" (Report), the others documents are embeded on it. So why MongoU (Client for mongo db) shows me all documents (that are embedded in Reporte) as "p
[14:58:21] <hummus3> 1. afaik ive only seen the crash during large-ish(2k+) cursor iterations over $geoWithin Polygon queries. 2. the mongod instance being queried will continue to crash on some* successive large $geoWithin queries 3. reIndex()-ing the collection stops the crashing for a prolonged period of time, even rerunning the same queries
[15:05:56] <hummus3> after a few crashes i ran db.setProfilingLevel(0,-1) to see the last few queries, but this only shows completed queries. That hex dump at the beginning of the backtrace isnt the crashing query or something _extra_usefuls_ is it?
[15:15:29] <farkore_> Hi all! I'm a newbie in mongodb,and I have a question that google has not responded me correctly, probably because I don't know how to ask him. I am here because is my last chance. My Question is: I have many report documents that are hierarchically structured and exists a "principal document" called "Reporte" (Report), the others documents are embeded on it. So why MongoU (Client for mongo db) shows me all documents (that are embedded in Reporte) as "p
[15:15:37] <hummus3> farkore_ im downloading that ui ive never used it. but it almost seems like it could just be the output formatting? are there other problems?
[15:18:43] <Goopyo> principal document = 'collection' ?
[15:19:12] <farkore_> No, There is not more problems than that. The weird is this: In mongoid I have a Campaign class that embbeds_many CampaignSubscription, if I create that in MongoU appers only "campaigns" and the campaigns subscriptions are embbeded on it. But that not ocurrs with my reports
[15:19:24] <farkore_> Gopyo, how can I specify that?
[15:20:54] <Goopyo> are you using dbrefs? If so UMongo is probably preloading them,
[15:21:54] <Goopyo> both these problems seem like they are with the app umongo but not mongodb, correct? If so try a different gui from here: http://docs.mongodb.org/ecosystem/tools/administration-interfaces/
[15:22:51] <farkore_> no, I'm using "embeds_many" or "embeds_one" relations types. For dbrefs MongoId specify "has_many" and "has_one" I think.
[16:22:42] <hummus3> Goopyo im not sure if you're still around, but before I mentioned mongod(2.4.3) crash related to 'src/third_party/s2/s2loop.cc:288: Check failed: IsNormalized()'. I was wondering if anyone had ever seen such a crash, and i mentioned it possibly seemed related to $geoWithin Polygon queries and a large cursor result. I know it seems pretty obscure but i figured id ask again as I try collecting more info.
[16:32:15] <hummus3> yea i havent seen many crashes... maybe im ignoring other factors though. dmesg shows status 14 (which i think is io related?). so i checked the disks, but they seem ok. the mongod log itself shows "Got signal 6 (aborted)" but that seems to just shows an immediate exit?
[20:26:10] <langemann> Hey, I use mongoose and want to get 3 values distinct from some documents. I started using the distinct() command, but I need another key - the "_id" key because some distinct values will have multiple distinct subvalues. These subvalues has the same _id as their parent.
[20:26:33] <langemann> Eh, *mongoose in nodejs that is. I'm just trying to find a query I could use for the problem above.
[21:08:25] <LoneSoldier728> hey so http://stackoverflow.com/questions/21222643/most-efficient-way-to-filter-a-search
[21:08:35] <LoneSoldier728> anyone know how to deal with that?
[22:07:46] <imm6> anyone here familiar with mongoose ?