[00:48:52] <blast_hardcheese> I inherited a Mongo project at work; I've got the basic concepts down, and I've played a bit with redis before. What is the mongo way to search for all documents that have a field within a field? I don't care about the value, just so long a they exist.
[00:49:50] <blast_hardcheese> This database has millions of entries in it, searching via {"outfield.infield": {$exists: true}} takes 5 minutes
[00:59:05] <cheeser> blast_hardcheese: is there an index on that field?
[01:26:34] <blast_hardcheese> cheeser: There isn't, but that was the solution. Thank you very much.
[09:28:32] <greybrd> hi guys. the reduce function is not happening if a key is not having more than one value in it's array. is there a work around to make it happen?
[09:31:17] <kali> greybrd: maybe you can use the finalize function. also be aware that some keys can go through reduce() more than one time
[09:35:06] <greybrd> hmmm.. yeah. how can I do that? any pointer over the net?
[09:53:09] <greybrd> kali: thanks for the link. but I couldn't find any solution to my problem in that link.
[09:54:06] <greybrd> my problem is, I'm trying to convert the unit of price from INR to USB. so, for the keys which have only one value, the output collection has got the unit in INR as such. where as other keys, with multiple values, have unit in USD.
[09:57:57] <Industrial> Hi. Can I find collections by name matching x?
[09:58:51] <Industrial> db.collectionNames, I guess
[10:45:57] <arussel> is there a way to do a query on the default _id as a date ? (to find all doc older than 20 minutes ago ?)
[10:49:04] <arussel> I can't use:{ ObjectId("507c7f79bcf86cd7994f6c0e").getTimestamp() : {"$gte": 1234 }}, can I ?
[12:49:30] <wawrek> is there a way of querying array intersections in mongodb? In the mongo documents structure I have a list field called 'ancestors'. I want to get all documents for a list of possible parents.
[12:50:26] <wawrek> or do I need to use map reduce
[13:49:19] <kami> where should I send the testcase?
[13:50:01] <cheeser> jira.mongodb.org. file a ticket under the JAVA project.
[13:50:56] <mylord> does this look ok from node: collection.findAndModify({"tid":tid,"uid":uid,"score":{"$lt":score}}, {"score":score}, {upsert:true, new:true, safe:true}, function(err, result) {
[13:51:47] <khinester> hello, i am running freebsd with ZFS, what would be the correct options to use for the zpool/data
[14:05:05] <saml> {ancestors: ['A','foo', 'B']} and this does not match?
[14:05:05] <wawrek> ancestors can have many 0 or items
[14:05:26] <saml> just give example docs and show us which docs you want
[14:05:39] <wawrek> what is important in ancestors is the last item: B in your case
[14:07:32] <saml> usually you duplicate things. {ancestors:[1,2,3], mostRecentAncestor:3}
[14:08:20] <_rgn> hey a question, if I do update({ _id: { $lte: ObjectID(uptoId) } }) is the order of ids guaranteed to be the order they were inserted?
[14:17:24] <saml> _rgn, _id is roughly sorted by document creation date
[14:17:51] <saml> so if you don't care for few docs off, that's fine
[14:18:09] <saml> sorting on an _id field that stores ObjectId values is roughly equivalent to sorting by creation time.
[14:18:31] <saml> The relationship between the order of ObjectId values and generation time is not strict within a single second. If multiple systems, or multiple processes or threads on a single system generate values, within a single second; ObjectId values do not represent a strict insertion order. Clock skew between clients can also result in non-strict ordering even for values, because client drivers generate ObjectId values, not the mongod process.
[14:19:00] <saml> _rgn, instead, just query docs that falls into "old" criteria and update them
[14:19:13] <saml> _rgn, what kind of update do you want to perform?
[14:19:30] <saml> give us example docs containing "good" docs that don't need update and "bad" docs
[14:20:39] <kami> I vreated a jira: https://jira.mongodb.org/browse/JAVA-1252
[14:27:38] <_rgn> the _id is basically same as creation timestamp right?
[14:28:14] <saml> basically, yes. but not exactly. http://docs.mongodb.org/manual/reference/object-id/#ObjectIDs-BSONObjectIDSpecification search for "sorting on"
[16:12:06] <Industrial> I'm doing several aggregations in parallel, writing them to collections and then doing find() on all the 'output' collections
[16:12:19] <Industrial> In my app, I'm trying to merge these collections into a CSV
[16:13:33] <Industrial> Somehow I'm having the weird behaviour that when say I have 5 streams from a .find().stream() and I know for sure there is data in each
[16:14:07] <Industrial> I'm randomly NOT getting any data event or end event
[16:14:41] <Industrial> Has anyone else ever experienced this behaviour? doing a query where there clearly is data to send and not receiving the data? everything else is ok, all the connections, etc.
[18:55:22] <dgarstang> What does this mean? "errmsg" : "could not verify config servers were active and reachable before write" ? Config servers are up and available.
[18:58:50] <dgarstang> God, I've been at this for days. I am ready to throw mongo against the wall.
[19:25:08] <mylord> how can i find docs that contain a subdocument named “user_id”?
[20:52:03] <mortal1> howdy folks, I'm coming to mongo from other sql based dbs, how does one find a particular property off a document?
[20:53:25] <mortal1> i tried find({_id:"1"}).someProperty
[20:53:40] <mortal1> as, you know that'd work in js right?
[21:03:22] <ranman> mortal1: you're actually getting back a cursor or an array from find
[21:03:24] <rybnik> mortal1 please note that find() will return a cursor so you should call toArray() on that find() and as you can imagine the result will be an array. Perhaps you should consider findOne
[21:03:30] <ranman> so you'll need to select an element [0]
[21:03:45] <ranman> and then you'll have access to that particular element's properties
[21:03:57] <ranman> you can also project fields out or into a document with the second argument to find
[22:27:03] <federated_life1> durango: no mongo, just app
[22:51:52] <astroduck> Hi! is there any $nand operator in mongo?
[22:53:12] <astroduck> I guess not, as its not listed here: http://docs.mongodb.org/manual/reference/operator/query/, but why not? I mean, here is $nor for opposite of $or, so why not $nand?
[22:57:11] <mikebronner_> astroduck: have you tried $not