PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 11th of January, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:00:15] <judges119> Joeskyyy: I already am, dawn has broken here in sunny Western Australia. :) Hope your weekend is radical as well.
[01:36:58] <zfaith> hey guys, can you help me debug this problem?
[01:37:08] <zfaith> bson.errors.InvalidDocument: Cannot encode object: set([7200, 'timestamp'])
[01:37:31] <zfaith> http://pastebin.com/WcCgLbin
[02:53:36] <Jestre> Is there an easy way to return only the last doc in a collection? Or do I need to sort by _id -1 and limit 1?
[04:00:30] <cheeser> Jestre: that's it
[05:09:07] <spondbob> any idea about running mongo on raspi?
[06:33:57] <ryansteckler> Hi all. I'm trying to get a list of top 10 users with the best win/loss ratio. I have wins and losses as fields in the documents. I know how to sort and limit. I can't figure out how I would "do the math" to calculate the ratios, and subject that value to the limit and sort, though...
[07:30:03] <goog> Is it easy to scale mongodb?
[07:30:17] <goog> is there a way to autoscale mongo shards and replica sets?
[09:03:49] <ytrezq> Hello, How I can use the active directory for Mongodb users... (this is a web site database; I need to use a framework which only support MongoDB).
[10:55:31] <kkspy[bnc]> Hello! I've got a question. What BSON query format looks like in queries like db.articles.aggregate( [ { $mat.... }, { $gr....}] ); ?
[10:56:06] <kkspy[bnc]> I mean where should I put the array in BSON query document?
[11:01:38] <kali> ?
[17:22:45] <allaire> Hi, I get the following error when I try to restart mongodb using init.d/mongo : /etc/init.d/mongodb: 48: ulimit: Illegal option -u:
[17:22:46] <allaire> any ideas?
[17:22:59] <allaire> line 48 is `ulimit -u 32000`
[17:29:42] <jergason> allaire: what happens when you just try to run that on the command line?
[17:30:20] <allaire> jergason: -bash: ulimit: max user processes: cannot modify limit: Operation not permitted
[17:31:17] <jergason> that is a permission thing, but the -u might not exist in your version of ulimit
[17:31:21] <jergason> try man 2 ulimit
[17:31:28] <jergason> and see if it lists a -u option
[17:31:48] <allaire> ulimit -u 200 works
[17:31:58] <allaire> jergason: pass 200 it does not work
[17:32:15] <jergason> you have a hard limit set somewhere
[17:32:26] <jergason> in /etc/security i think?
[17:32:40] <allaire> I'm on ubuntu 12.04, default AWS image
[17:32:53] <jergason> /etc/security/limits.conf might have a hard limit set
[17:32:59] <jergason> and you can raise it up to that hard limit
[17:33:51] <allaire> jergason: everything is commented
[17:37:30] <allaire> jergason: the restart goes through anyway though
[17:55:21] <allaire> jergason: in the init.d script, when I switch #!/bin/sh to #!/bin/bash, it works
[17:55:29] <jergason> wellllllllllllllllll shooot
[17:56:03] <allaire> what does it means? :P
[17:57:26] <allaire> jergason: http://askubuntu.com/questions/97257/ulimit-u-gives-illegal-option-error-when-running-from-a-script-but-not-when-fro
[18:15:31] <zfaith> guys I'm using mongodb's aggregate function, but the sort doesn't seem to work with pymongo
[18:15:33] <zfaith> anyone have any ideas?
[18:17:11] <Derick> did you use sort as pipeline operator?
[18:17:14] <Derick> please pastebin the code
[18:17:41] <zfaith> http://pastebin.com/zCMj47aJ
[18:18:04] <Derick> that looks fine
[18:18:26] <Derick> but wouldn't you want the sort after the group?
[18:18:49] <zfaith> the output looks like: http://pastebin.com/f1Aebx2a
[18:19:08] <Derick> yes, sort after the group
[18:19:29] <zfaith> ...oh..
[18:19:32] <zfaith> god, I feel dumb.
[18:19:43] <zfaith> thank you :)
[18:20:24] <cheeser> i'm not even sure how that pipeline would work since there appears to be no "time" property in the document.
[18:22:07] <zfaith> its under group
[18:22:18] <zfaith> I wanted to use timestamp, but it gets mangled.
[18:23:45] <cheeser> ha! there it is. and why $sort wasn't working.
[18:24:49] <zfaith> right haha
[22:27:19] <baris> hi
[22:28:09] <baris> I'm trying to decide which way I should got, either I should fetch all the data for a query and make filtering on node or fetch one by one from mongodb
[22:28:16] <baris> which one would be faster or efficient?
[22:28:39] <baris> I feel like former, but could not be sure, since that might cause memory problem to nodejs maybe
[22:42:32] <sharondio> 2 hours fighting with a mongoimport...figures the issue is Microsoft linefeed nonsense.