PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 7th of June, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:03:24] <ianseyer> hi all. is there a way to combine distinct with limit?
[01:03:36] <ianseyer> looking to do db.collection.distinct('code').limit(10)
[01:18:14] <dimon222> aggregation framework
[01:19:11] <dimon222> http://stackoverflow.com/a/14268362/1667179
[01:29:46] <ianseyer> dimon222: thanks! out of the code in that first black, what is performing the uniqueness requirement?
[01:57:16] <dimon222> group by is basically the way you specify what supposed to be unique
[01:57:25] <dimon222> $group
[01:58:35] <StephenLynx> _id: something
[01:58:42] <StephenLynx> it groups by _id on $group.
[01:59:08] <StephenLynx> if you use _id:'$aField' it groups by aFiel
[01:59:08] <StephenLynx> aFiel*
[02:00:39] <dimon222> actual feature to get it without complex aggregation doesn't seem to be added
[02:00:41] <dimon222> https://jira.mongodb.org/browse/SERVER-2130
[02:00:42] <dimon222> :(
[03:22:33] <Streemo> if i include in a $or query the following option: {$in: []} (an empty array), will that reduce performance?
[03:23:29] <Streemo> i'd rather just specify it and not have to spend a few lines in an if/elseif/.../else structure and specify a different query every time x-x
[14:22:03] <pyios> what result does the find() return ?
[14:28:50] <StephenLynx> the found results.
[14:29:03] <StephenLynx> by default a cursor to the results.
[16:13:43] <maumercado> hello all
[16:14:08] <maumercado> I was wondering.. does the bulk operation for the nodejs driver emit events like done? or finihs
[16:14:15] <maumercado> I was wondering.. does the bulk operation for the nodejs driver emit events like done? or finished?
[19:18:01] <g00ey> I use to comment out the bind line in /etc/mongodb to acced my tb remotely. Now it's in prod and I commented the line again but I can still access it remotely :s
[19:18:17] <g00ey> any idea on how to solve this? don't want to get hacked overnight x)
[21:58:34] <Dev0n> hey, is there much difference between {field: 1}, {field: {$eq: 1}} and {field: {$in: [1]}}
[21:58:39] <Dev0n> performance wise
[21:58:49] <StephenLynx> I have a guess the first its faster.
[21:59:10] <StephenLynx> the two will perform more actions one way of the other
[21:59:21] <StephenLynx> the first just checks if it matches directly and thats it.
[21:59:43] <Dev0n> true, I guess in the source $eq will have to bubble up to whatever first one is doing
[22:00:00] <Dev0n> but more ticks nonetheless
[22:01:36] <Dev0n> just that meteor minimongo doesn't yet support $eq so having to do $in as a hack
[22:01:59] <StephenLynx> so don't use meteor.
[22:07:16] <Dev0n> StephenLynx, I'm in too deep :o
[22:15:36] <StephenLynx> welp
[23:02:45] <markholmes> hey, i'm getting the following startup warnings on osx when typing 'mongo' in terminal: [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
[23:03:30] <markholmes> i tried typing sudo ulimit -n 1000 but it didn't seem to fix the issue. perhaps I did something wrong. any advice?