[00:33:23] <joannac> see what's in ls /Library/LaunchDaemons/
[03:15:03] <michela> hi, should mongodump save capped attribute of a collection? restored collection was missing this
[04:56:39] <Botanic> hi i am trying to get the info out of a collection in a database, im familer with mysql so im assuming a collection in similer to a table when i run db.admin.find({}) i get nothing as output however from the console
[05:40:46] <terriblesarcasm> Botanic: admin being the collecting?
[05:47:33] <terriblesarcasm> it's case sensitive if that makes a different here
[05:48:29] <Botanic> i coppied it from "show collections"
[05:48:35] <Botanic> is there another tool i can use?
[05:48:45] <terriblesarcasm> I use the site mongolab
[05:49:22] <terriblesarcasm> mongolab.com I have an account, it gives you a free cloud mongo db, however I mostly use it as a visual representation of my server's db that you can add there
[05:56:25] <Botanic> i trid robomongo but same thing
[08:15:14] <sqlnoob> Hi I'm trying mongo just for fun. I'm trying to select documents based on _id. How's it possible to pass multiple _id in the mongo like IN query in SQL?
[08:15:57] <joannac> Dinoop: unique index won't let you add duplicates
[09:47:27] <jinmatt> how do everyone usually manage users in mongodb production? I'm totally new to this. I have a admin user with userAdminAnyDatabase and another user with readWrite and dbAdmin permission, which I use within the application to connect to mongodb
[09:52:38] <jinmatt> so many people here and no one every answers anything here?
[10:00:29] <jinmatt> then the mongodb will be open to the world, nah? anyone can access it from anywhere if they know the ip address?
[10:00:33] <balboah> mongodb didn't even have this functionality from the start
[10:00:54] <balboah> well you would probably not allow internets to connect to your production db's
[10:01:09] <balboah> I wouldn't trust mongodb user privileges to block that
[10:02:51] <noqqe> jinmatt: i run my mongocluster in a secure environment and use separate users for each db and keyfile on. because it works.
[10:02:54] <jinmatt> I use mongodb currently like that without no users, but still I feel its not enough, thats why I was asking how everyone does it in their production
[10:04:09] <jinmatt> so you only access to mongodb is allowed from specific ips, opened on your firewall?
[10:04:51] <balboah> no way of connecting to it from outside world
[10:06:27] <jinmatt> my current problem is that I have dynamic auto scaling app servers, so I can't specify the range of IPs from whihc my app servers connect to mongodb
[10:09:06] <Nodex> surely your app servers can notify a service that they're up and running
[10:26:35] <balboah> jinmatt: depends on your service provider as well, for example in Amazon you could specify a security group that allows its own group to talk to itself, not depending on specific ip's
[10:27:07] <balboah> or as Nodex says you could listen for events and change things
[11:19:08] <LDA_> Hi all. Could someone lend me a hand with a mongoDB query from the perl api?
[11:19:20] <LDA_> I can't seem to get it to work for the life of me
[11:57:01] <Nodex> it's adding complexity for no reason
[11:57:42] <LDA_> the structure come from http://search.cpan.org/~rharman/Parse-Snort-0.6/lib/Parse/Snort.pm
[11:58:32] <LDA_> i am basically reading a complex line from a file and parsing it with that object which i just dump into mongo as is
[12:00:07] <Nodex> it would be far better to dump it in like this... opts : [{"gid":1},{"url":"/bar"}] .. then you can query like this .. {"opts.gid":1, "opts.url":"/bar"}
[12:01:22] <J43> my boss wants to use elasticsearch as our main data store instead of mongodb, its an illogical idea but i cant think of a reason not to ._.
[12:01:30] <LDA_> it would make my life much less painful that is for sure
[12:06:09] <Nodex> I don;t know ES all that well but I can only imagine that the insert / update throughput will not be as good as something more suited to it
[13:16:32] <kali> Derick: great. maybe you can help me a bit with this: i'm hacking a proxy for mongodb wire protocol, and i was hoping that i could somewhow hijack some driver or metadrivers tests to check i'm not breaking more than i intend to
[13:17:18] <cheeser> if it's a proxy, there's no need to hijack. just point the tests at your proxy.
[13:18:19] <kali> cheeser: yeah. but which set of test should i use ? jstest ?
[13:18:44] <kali> cheeser: i was hoping the metadriver has some authoritative test suite covering the protocol
[13:19:39] <cheeser> i would expect any driver's tests would cover most of the protocol facets that matter to most users.
[13:20:56] <kali> yeah, I just need to pick a convenient one
[13:30:05] <katspaugh> Hi! I'm opening a collection, then insert record by record upon reading lines from a CSV-file. Sometimes it hangs. Sometimes it won't unhang until I drop the collection. How do I approach this problem?
[13:30:58] <katspaugh> Database connection hangs, that is.
[13:31:32] <katspaugh> cheeser: through a Node.js driver. I'm reading lines of CSV, transform them into JavaScript objects and then insert.
[13:31:48] <katspaugh> I set write concern to 0 (unacknowledged).
[13:32:43] <cheeser> 1. probably shouldn't use unacknowledged. 2. put in debug to verify it's not your app that's hanging. 3. connect to mongo via the shell and see if the db is still responsive.
[13:34:00] <katspaugh> cheeser: thanks! What would change if I use w: 1?
[13:34:51] <cheeser> your throughput would drop because you'd be waiting for the ack. one possibility is that you're saturating your connection.
[13:37:05] <katspaugh> cheeser: hmm, interesting! Thanks, I'll try your suggestions.
[13:39:15] <katspaugh> Oh, one more thing. Are there any gotchas when tunneling a MongoDB connection through ssh?
[13:41:44] <pithagora> hi all. i do a dump of db from one mongo instance and restore it into an other instance. the db in first instance has about 34 G, as per mongo client, while in second it has only 2. how its possible?
[13:41:53] <pithagora> i do show dbs in mongo client
[15:24:19] <doxavore> I recently started getting errors in 2.4.9 that my user, that i've been using for ages, isn't authorized to create the gridfs fs.chunks index. the user has both dbAdmin and readWrite privs to this DB... is there something else they need?
[15:43:30] <SolarSailor> Hi guys - I'm considering using Mongo for a project in which I need to receive, store and parse JSON documents that may be nearly identical - but not totally identical. One of the challenges I face in my PoC is how to search for an element in a document. I can only be sure that I know the name of the element, not its place (path) in the document. How do I do that?
[15:43:58] <SolarSailor> It should be said that the document may be of arbitrary depth.
[15:45:56] <Nodex> and you must specify the depth .. i/e "foo.bar.baz.fred" : "/abc"
[15:45:58] <SolarSailor> I'm used to querying XML with XPath and CSS expressions, in which you can make these kinds of searches, but I can't seem to find out how to perform such searches in Mongo.
[15:47:03] <SolarSailor> So if the document isn't following a well-known schema, I can't lookup an element just by element names? I still have to know the structure of the document in order to find it?
[15:50:08] <SolarSailor> Another thing I've considered is using Hadoop+MapReduce, but it seemed overkill at the time. Hmm, OK, thanks for the effort.
[15:58:13] <BlakeRG> hey all, i have a collection of documents and i want to run a query against all documents and pull out a unique, counted list of unique values for a single field - analogous to a GROUP BY in SQL. Any tips?
[17:06:14] <daveys110> hi. on M101J: MongoDB for Java Developers ; HW 5.2, I'm not sure I understand the question - can anyone help with this?
[17:07:06] <daveys110> I've written what I believe is the correct aggregation function but I must be mis-understanding the question because the check-value doesn't match.
[17:16:07] <jchamberlain> dumb question, but in a schema-less world, where in your code do you define things like indexes and stuff?
[17:16:18] <jchamberlain> I'm coming from a PHP+MySQL background
[17:16:42] <jchamberlain> and am used to having a migration script setup the schema of the database and its indexes
[17:17:01] <NaN> do I need mapreduce to get this? > https://ghostbin.com/paste/pwsgu
[17:17:21] <jchamberlain> but in mongo I don't have a place that's setting up the collection's schema, so I'm not sure what the best practice is for where to do that kind of thing
[17:28:29] <jchamberlain> I guess this gets close to answering my question: http://stackoverflow.com/questions/7000777/mongodb-when-to-call-ensureindex
[17:51:28] <Jadenn> is there a way to refer to other objects, so when i query for one object, and there is a field that refers to another object, it returns that referred objects data?
[17:56:51] <Joeskyyy> you just used a lot of words for "joins" haha
[17:57:35] <Jadenn> i know, i also know there are no joins
[18:05:17] <Nodex> or put them in memcache/redis ;)
[18:06:29] <Jadenn> well when you have queries like (f.friendUid = m.id && (uid = :uid && confirmed = 1)) || ((f.uid = m.id && f.uid != :uid) && (f.friendUid = :uid && confirmed = 1)) you really have to simplify
[18:12:25] <Jadenn> forgive me almighty Ledorf, for today i shall be recursively recursing
[18:13:34] <Jadenn> i meant i have to foreach inside of a foreach
[18:20:52] <Jadenn> what would be the best way to store the friends? having a friends object with field named the friends id, and the value his username, or with each friend having their own object and appropriately named fields
[20:18:50] <cheeser> well, you could run js in the shell to execute the pipeline, iterate the docs that come back and insert them in to some collection
[20:25:18] <NaN> cheeser: that's what I'm doing but what kind of object does aggregate returns?
[20:31:54] <cheeser> in 2.6, you can get a cursor back as well so you're not limited to 16MB
[20:33:09] <NaN> looks nice, but seems there isn't any update for fedora jet
[20:45:20] <alexw> I have a list of business activities (i.e. fashion wholesaler), and I want to be able search this list (I assume using mongodb). But I need it to match similar keywords, i.e. if I search "car" it will return automotive manufacturer
[21:01:09] <NaN> is there a way to format a mapreduce output or do I need to aggregate over the new collection?
[21:06:56] <LoneSoldier728> hey so I have a user and a list, a list contains two arrays of users good and bad... and the user has two arrays good and bad... I want to ask for lists, but then need to check whether or not the user is in the good or bad list, to avoid showing it... what is the most efficient way? Option a: grab the user and all the lists, and check each user's good and bad array if they have the list id if so ignore it? Or is there a more efficient way?
[23:29:18] <__j0k3r__> i have a little question about mongodb mapreduce
[23:30:14] <__j0k3r__> i have a mapreduce job (that is working), but i need it to be run on an *ordered* sset, so i need to specify the sort condition on the query
[23:30:20] <__j0k3r__> but i am not able to achieve that