[07:18:39] <reese> hi, I have problem with drop empty collection, Dropping collection failed on the following hosts: .... code: 16338, could you help me?
[07:19:46] <joannac> there should be an error message
[07:19:51] <joannac> reese: what was the error message?
[09:47:42] <Claus> I want to update subocs of a document
[09:49:50] <Claus> my document is { "name": "prova", "instance": [{"prova1": "c", "f":"b"}, {"prova1":"d", "f":"n"}]}
[09:50:42] <quattr8> is there any information out already on how easy it will be to migrate from 2.6 to version 3 of mongodb with wiredtiger compression?
[09:51:39] <Claus> i want to update more instance (subdocs) at the same time
[09:59:14] <lxsameer> hey guys, is there any thing like group_by for mongo ?
[10:41:48] <robopuff> Hi guys, I'm new to mongodb (and nosql at overall), and I'm trying to create an application that's gonna use this db. I've got a collection of items, which contains a pricing embedded document, and I need to filter items based on price, but currency can change. Currently pricing embedded document contains price value and a currency string. Got second document with currency exchange rates, but mongo >= 2.4 disabled usage of
[10:41:48] <robopuff> db inside $where - I've tested also functions, but mongo tells me that db is unknown. Any idea how to manage this?
[11:22:59] <joannac> I hope you have a good reason for needing it
[11:24:22] <Sp4rKy> well, neither http://docs.mongodb.org/manual/reference/configuration-options/#setParameter nor http://docs.mongodb.org/manual/reference/parameters/ say that some of the setParameters can't be added to config file
[11:24:36] <Sp4rKy> so my first idea was "ok, let's put this config param in config file"
[11:51:23] <djlee> Hi all, wondering if you could help me. I've never really used mongo's aggregation stuff, and to be honest, i usually sit inside an ORM rather than executing raw queries. I was to essentially get a list of user ids from a collection, grouped by "user_id", and the "rating" field summed (then i want to order desc on sum of rating later, but havent got to that point yet).
[11:51:28] <djlee> I've got this query so far: http://pastebin.com/CyzgEkfQ
[11:51:52] <djlee> it's returning the correct number of results, but the rating sum is always zero
[11:52:06] <djlee> am i doing something silly in that query?
[12:14:27] <StephenLynx> in the _id you can just _id: "$user_id"
[12:14:50] <StephenLynx> no need to set an object for it
[12:15:57] <StephenLynx> and I will have to see your model to understand what the rating is
[12:16:03] <djlee> Thanks StephenLynx. Good to know. just starting to understand the expression stages e.c.t. It's actually quite a nice structure once you get your head out of SQL
[12:19:06] <djlee> StephenLynx: I'm using Eloquent, part of Laravel (A PHP framework). However it was my own fault, i presumed since i had set the validator to validate the field as an integer, it would validate the type too, but it doesn't. I just had to cast the integer manually
[12:34:26] <kelt> on the docs it says not to use text search on production systems: http://docs.mongodb.org/v2.4/tutorial/enable-text-search/
[12:35:03] <kelt> but if you're not going to use it on productions systems... then why would you ever use it at all? it's not like we are going to use it on development system only...
[12:37:11] <StephenLynx> that is 2.4 docs. the current version still says that?
[12:37:46] <StephenLynx> no, it doesn't http://docs.mongodb.org/v2.6/core/index-text/
[12:37:54] <StephenLynx> back in 2.4 it was a beta feature.
[12:38:01] <StephenLynx> with heavy performance issues.
[15:06:40] <robopuff> Hi guys, I've got a problem - I have to filter collection items based on min/max price that user put, but he can put in USD and item has price set in GBP. Since mongodb has disabled "db" in where query, what are the possibilities to do such a thing?
[17:12:29] <roadrunneratwast> neo_44: you are a prince among men
[17:12:45] <roadrunneratwast> i am still hacking and will post later. i am a n00b to mongo
[17:13:08] <roadrunneratwast> thanks for being a pal
[18:45:19] <tbo_> does anyone know if it's possible to populate mongoose references on save? rather than when they're queried?
[19:56:19] <roadrunneratwast> Hi I am a mongo noob. Can folks give me feedback whether this: http://plnkr.co/edit/ANr7Fy53yTHrE8624lgt?p=catalogue seems like a reasonable backend model for this wizard: https://guttersnipe.herokuapp.com/#/resources/wizard/start
[19:57:38] <roadrunneratwast> Should I worry about modeling the TAXONS (type is "food", "medical", "housing") as strings? It seems wasteful? Or am I just worrying too much about nothing?
[20:06:15] <_newb> i'm saving a string with non-standard characters to mongodb and it's storing just fine: “A Leslie Knope In A World Full Of Liz Lemons” recommended by Medium Staff
[20:06:43] <_newb> but when i try to construct an email with this string in the message, the characters are transformed into goofy ones ... any suggestions?
[20:08:25] <roadrunneratwast> Are you sure about character encoding?
[20:09:04] <_newb> roadrunneratwast: no, what do you suggest? please
[20:09:07] <roadrunneratwast> That would be my guess. You might need to encode or decode the string to the appropriate format
[20:09:17] <roadrunneratwast> I am even more of a noob than you are
[20:09:52] <_newb> roadrunneratwast: even if it stores (and looks GREAT) in mongodb?
[20:10:15] <roadrunneratwast> Well. It could be base64 encoding and you might need a different encoding
[20:11:05] <roadrunneratwast> I ran into this problem in a different context and had to do just run a simple decoding function
[20:12:18] <_newb> roadrunneratwast: the original content looks like this: Subject: =?UTF-8?Q?=E2=80=9CA_Leslie_Knope_In_A_World_Full_Of_Li?= =?UTF-8?Q?z_Lemons=E2=80=9D_recommended_by_Medium_Staff?=
[20:12:48] <roadrunneratwast> and then what happens ?
[20:15:36] <_newb> roadrunneratwast: mongodb stores it the right way, but when i insert it into a message it gets all weird
[20:15:40] <roadrunneratwast> most likely the string was mangled somewhere along the way. either you can try to fix the way it was transmitted or try to reencode it.
[20:16:02] <_newb> roadrunneratwast: okay, i guess i was pointed in that direction, just gotta figure that out
[20:16:14] <roadrunneratwast> does the message support UTF 8 encoding?
[20:16:27] <roadrunneratwast> maybe you need to convert it to ASCII.
[20:16:38] <roadrunneratwast> Again, these are just guesses on my part.
[21:28:00] <GothAlice> joannac: I just ran an experiment and told Exocortex to give me the oldest things ever stored. "Blowing up the Whale.AVI" from Jan 29, 1999 is the oldest (originating from when I *first* started coding up the project) and http://cl.ly/2A1h2K0P1g1H (I believe from AdCritic) is the third oldest thing circa May 2000. My dataset can legally vote in some places. :D
[21:33:52] <cheeser> oh, adcritic. i loved that site.
[21:34:44] <GothAlice> Yeah. T_T Sad victim of copyright.
[21:35:15] <cheeser> sadly, now it's all on youtube.
[21:36:57] <GothAlice> T'was a battle that couldn't be won, but there were still casualties along the way. :/
[22:00:09] <kexmex> how is Munin compared to Graphite+Diamond?
[23:38:33] <zzzzz> Im having trouble trying to install latest version of mongodb on Debian Jessie, it fails with http://pastebin.com/kmyunjEc
[23:39:58] <zzzzz> dpkg --configure - a doesn't fix it, nor does the latest version