PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 12th of September, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[05:05:04] <Wulf> GothAlice: got it working with an aggregate pipe: match, sort, project, group (with $push), project (with $slice).
[09:25:23] <guardian> hello, is there a way to combine $addToSet and $currentDate so that the added object in the array contains a date?
[12:09:28] <GothAlice> Wulf: Glad to have confirmation that my suggestion was the correct one, thanks! :D
[12:11:35] <GothAlice> guardian: What's the line you've got so far?
[12:15:33] <GothAlice> Though, admittedly, the requested operation is absurd to repeat. $currentDate will give you… the current date.
[12:15:52] <GothAlice> Have a million records, each will get the same generated date ± a second, roughly.
[12:16:40] <GothAlice> (Instead of getting MongoDB to generate that, just use your programming language to; from datetime import datetime; print(datetime.utcnow()) )
[12:26:44] <guardian> GothAlice: the idea behind using $currentDate is to make sure dates are always computer by the server, instead of worrying the different clients are synced with NTP and proper timezone
[12:27:22] <GothAlice> Uh.
[12:27:24] <guardian> in fact it's less partical to have "$currentDate" being an update operator compared to e.g. a special "value token" that gets replaced upon write
[12:28:23] <GothAlice> http://s.webcore.io/YWjz/ah--uh--hmm.gif
[12:30:29] <guardian> lol there's a dead ticket asking for it but nobody cared https://jira.mongodb.org/browse/DOCS-6666
[12:43:45] <GothAlice> That’s a documentation ticket, not a server feature request. :/
[13:36:52] <s10g> Does mongodb have default env vars it consults, like pgsql's PGHOST, PGUSER etc?
[15:22:57] <guardian> GothAlice: sure, it's still ignore with the same disdain as your feedback :D
[15:23:02] <guardian> s/ignore/ignored
[15:23:56] <GothAlice> Not entirely sure what you’re trying to convey with that statement. My own contianed no disdain, it was a statement about the DOCS- prefix on the reference.
[15:26:39] <GothAlice> “I want to be able to do X” will not be satisfied by a ticket asking for “document a way to do X”, using, essentially, the wrong tools. Or at least, using an existing tool for something other than its purpose. These are not the same requests. ;P
[15:26:41] <GothAlice> xyproblem.info
[15:30:40] <GothAlice> Not that I don’t have sympathy for long-standing issues. Some of mine have been open for years. Others have been “corrected” and approved, only for me to return and point out every way the “solution” violates the requirements. Or contributing a change implementing exactly the requirements only to have it rejected as “constraining future design decisions”.
[15:30:47] <GothAlice> That gave me several days of hearty laughter.
[15:33:14] <GothAlice> Ah, here’s that one: https://jira.mongodb.org/browse/SERVER-25717
[15:33:15] <GothAlice> Good times.