PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 28th of May, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[06:40:56] <Jonno_FTW> in pymongo is it possible sort using useDisk for a cursor?
[12:42:57] <iKossu> how do I use $lookup without the end result of $group not being a nested array?
[12:52:27] <iKossu> nvm. I got the wanted end result by using $arrayElemAt
[16:30:13] <wfq> hi all
[16:33:43] <wfq> I'm trying to register a connection with mongo and then connect to it but I get either You have not defined a default connection or connection refused. When trying via Robomongo I am able to connect as shown here: https://pastebin.com/AUF50T9Z
[16:33:45] <wfq> any idea?
[16:41:45] <wfq> somehow I'm unable to use register_connection
[20:38:09] <jayjo> I'm trying to use mongodb and google firestore in the same application for delivering the previous n records/values for time series data. It seems like firestore is much more restrictive in that you need to essentially write the data in the way it will be queried and is collection/doc/col/doc/... in the storage pattern. I think mongo can mimic everything firestore can do. I've seen this mongo guide to
[20:38:15] <jayjo> storing ticker tape: https://www.mongodb.com/blog/post/schema-design-for-time-series-data-in-mongodb - is there any different recommendation for the data not being as structed?
[20:40:16] <jayjo> As in - in that document it details how to store the data so it can be updated via <23rd hour doc>.update('59.59', val) to update the 59th minute 59th second of the 23rd hour. In my particular case the times will just be snapshots and are not guaranteed to fill all minutes. In fact, more along the lines of 1 an hour
[20:41:31] <jayjo> Will there be a way in mongo to get the last `n` records if I use the blog post schema design? Should i not use that design if I know ahead of time the data won't be structured?