[07:04:33] <roberto> I would like delete some data duplicate in one collection of my BD. I tried to create a index, but it failed, anc anyone help me?
[09:21:23] <TeTeT> hi, I foolishly deleted a user from the User collection and now this user is still referenced in the Org collection. I cannot figure out how to remove the DBRef for that user
[09:22:42] <TeTeT> here are the command lines to find the user and the attempt to pull them from Org:
[13:24:40] <foofoobar> Hi. I want to save some files (between 1MB and 5MB) in a database.
[13:24:51] <foofoobar> Do I have to use GridFS for this or is there an easier way?
[13:25:59] <kali> 5M fits in a regular document, on a "binary" field
[13:27:25] <foofoobar> kali, okay. I will try it, thank you
[14:10:14] <leitz> I've inserted a numeric key -> value array into a Mongo collection. Trying to figure out how to reference the key. db.imperial_last_names.find()
[15:04:05] <leitz> ron, not really. Just wondering if I'll be able to get an answer to my question or need to look elsewhere.
[15:04:43] <leitz> Since it's the weekend, most folks may be elsewhere.
[15:04:53] <ron> then you should know that IRC is a pseudo-online way to ask questions, but it's not really. you can always use the forums at the same time.
[15:06:14] <leitz> Yeah, that would be the "look elsewhere" option. IRC is often useful if you're in the middle of something, though.
[15:06:37] <ron> that's true, but asking whether there are people online doesn't really help ;)
[15:07:41] <leitz> Wasn't sure if any of the folks who had recently joined were mentors or mentees.
[15:07:48] <ron> leitz: can you repeat your question please? it seems to be cut off in my logs.
[15:08:36] <leitz> <leitz> I've inserted a numeric key -> value array into a Mongo collection. Trying to figure out how to reference the key. db.imperial_last_names.find()
[15:26:40] <Derick> but you'd have to do two queries - one to retrieve the size, and then the single element
[15:27:28] <Derick> if you query for the size, then: store the size with the document, and do a projected query on it (to just get the count). But if you do that, you can just as well query and return the whole document and do the random element selection in your script.
[15:28:29] <leitz> If you return the entire document wouldn't it take up more space? I need to call it 50-70 times per script run.
[15:28:54] <Derick> so query the document onces at the start, and do the random 50-70 times.
[15:44:39] <roberto> I need delete duplicates by a field, i tried create an index with unique and dropdups, but it didnt work, ... any idea? Thanks
[15:45:06] <Derick> roberto: that should work, but you didn't show how you tried that, or how your documents look like. Put that in a pastebin and show the link?
[16:05:14] <roberto> sorry, Derick , it throws me this message : "too may dups on index build with dropDups=true"
[16:05:23] <Derick> roberto: heh - that's a new one
[16:06:51] <Derick> roberto: see https://groups.google.com/forum/?fromgroups=#!topic/mongodb-user/OG637jkxKdQ and http://stackoverflow.com/questions/9337123/how-can-i-delete-duplicates-in-mongodb