<    June 2018     >
Su Mo Tu We Th Fr Sa  
                1  2  
 3  4  5  6  7  8  9  
10 11 12 13 14 15 16  
17 _1_8 19 20 21 22 23  
24 25 26 27 28 29 30
00:48 alexband joined
00:50 alexband joined
00:51 alexband_ joined
00:53 macwinne_ joined
01:01 xekz joined
01:09 hotpot33 joined
01:24 miroesq_ joined
01:25 chat_ joined
01:33 Haxxa joined
01:49 RyansWorld joined
02:50 tm joined
02:55 macwinne_ joined
03:36 chat joined
03:40 jri joined
03:50 macwinne_ joined
03:54 chat_ joined
04:35 b1p joined
04:53 sspreitz joined
04:56 chat joined
05:23 sspreitz joined
05:38 lowbro joined
05:38 lowbro joined
05:42 workbean joined
05:47 <Jonno_FTW> how do I get those documents where the current time is 24 hours after a datetime field?
05:48 maryo joined
05:49 <Jonno_FTW> actually I'll just have an extra field
05:57 macwinne_ joined
06:14 lowbro joined
06:14 lowbro joined
06:16 sandstrom joined
06:20 damnlie joined
06:25 macwinne_ joined
06:35 rendar joined
06:43 hotpot33 joined
06:56 jri joined
06:56 justanotheruser joined
06:57 <justanotheruser> how can I use $mod on a timestamp? Is there some way I can convert it to an int in the query?
06:59 jri joined
07:02 sQVe joined
07:22 Lujeni joined
07:26 chawixx joined
07:26 chawixx left
07:30 MACscr joined
07:35 sandstrom joined
07:38 jackdt joined
07:52 jackdt joined
07:54 sandstrom joined
08:19 chawixx joined
08:31 hadifarnoud joined
08:33 macwinne_ joined
08:46 jackdt joined
08:48 goldfish joined
08:54 gfidente joined
08:54 gfidente joined
09:07 macwinne_ joined
09:26 hfp_work joined
09:30 jri joined
09:43 <Derick> justanotheruser: you can - via a conversion with $dateToString
11:17 maryo joined
11:24 Avinash joined
11:30 arthurmde_ joined
11:37 StephenLynx joined
11:39 gfidente joined
11:39 gfidente joined
11:46 jri joined
12:24 rsrx joined
12:25 marcelofr joined
12:29 jri joined
12:29 <marcelofr> Hi!. I've configured a replica set with a primary, secondary and arbiter (with keyfile). Every things is ok, but the network traffic is a few MB/s on primary, a few Kb/s in secondary, but arbiter has the same bandwidth of primary. Is this ok?
12:31 RickDeckard joined
12:34 macwinne_ joined
12:34 <Derick> the arbiter should have virtually none - except for some heartbeats
13:00 Avinash joined
13:36 sterns joined
13:38 JonathanMcClare joined
13:42 jackdt joined
13:42 annexseven joined
13:50 griffindy joined
13:56 klics joined
14:10 definity left
14:11 Avinash joined
14:13 bricknha1mer left
14:13 bricknha1mer joined
14:20 macwinne_ joined
14:30 alexband joined
14:35 StephenLynx joined
14:43 Avinash joined
14:51 macwinne_ joined
14:58 Avinash joined
14:59 rideh joined
15:08 iceden joined
15:10 macwinne_ joined
15:21 macwinne_ joined
15:56 RobertPlummer joined
15:56 <RobertPlummer> Is there the capability in mongo to use a javascript module or plugin?
15:57 <RobertPlummer> If so, where is the documentation?
16:00 Avinash joined
16:06 macwinne_ joined
16:08 jri joined
16:17 oldman joined
16:17 <Derick> no, there is not
16:18 <Derick> you should not be wanting to run javascript in the server
16:24 workbean joined
16:42 <justanotheruser> Derick: dateToString? I can perform modulo on string and mongo will convert it to int?
16:44 <Derick> dateToString to turn timestamp into a string containing numbers since the epoch, and then "convert" to turn it into an int
16:49 raynold joined
16:52 <justanotheruser> what is the format specifier for that?
16:52 <justanotheruser> also what is "convert"?
16:52 <justanotheruser> I'm on the page, and don't see any format specifiers
16:53 <justanotheruser> though actually, this gives me a solution to my problem, and I don't have to use $mod anymore, thanks
16:53 <justanotheruser> I was checking timestamp % 3600 == 0
16:54 <Derick> you are checking whether the minutes are 0
16:54 <justanotheruser> right
16:55 <justanotheruser> and seconds
16:55 <Derick> $dateToString(format: "h", date: '$timestampField') in the aggregation framework should do the trick
16:55 <Derick> or then, seconds too: "%H%M"
16:55 <Derick> → $dateToString(format: "%H%M", date: '$timestampField')
16:55 <Derick> ugh
16:56 <Derick> sorry
16:56 <Derick> → $dateToString(format: "%M%S", date: '$timestampField')
16:56 <Derick> which you then can compare with "0000"
16:57 <justanotheruser> yep, got it, thanks
17:00 <Derick> I'm going home, good luck :)
17:00 <Derick> there is an example at https://docs.mongodb.com/manual/reference/operator/aggregation/dateToString/#example too
17:06 alexband joined
17:24 griffindy joined
17:39 WebertRLZ joined
17:44 artok joined
17:45 Aelano_ joined
17:45 colwem_ joined
17:47 sandstrom joined
17:48 Folkol joined
17:50 joannac joined
18:02 Sasazuka joined
18:16 rar_rar joined
18:26 reie joined
18:30 macwinne_ joined
18:32 jri joined
18:34 chat_ joined
18:35 jmikola joined
19:05 diegoaguilar joined
19:21 klics joined
19:22 Rashad joined
19:24 macwinne_ joined
19:28 Rashad joined
20:20 macwinne_ joined
20:34 Rashad joined
21:10 chat joined
21:21 rsrx joined
21:22 macwinne_ joined
21:25 sterns joined
21:26 StephenLynx joined
21:31 macwinne_ joined
22:01 Mia joined
22:01 Mia joined
22:27 kt joined
22:31 JStoker joined
23:19 workbean joined
23:20 <justanotheruser> Derick: do you know how I could use that in pymongo? I'm trying to query it like so https://hastebin.com/raw/uticutitiy
23:20 <justanotheruser> but I get pymongo.errors.OperationFailure: unknown top level operator: $ne
23:34 kt joined
23:46 DroidBurgundy joined