PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 10th of September, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:01:19] <Sasazuka> actually that's probably a silly request
[02:51:03] <GothAlice> Yes. To the latter. ;P However, also no. There are means to have documents with truly dynamic sets of fields that are queryable in that way. Documents themselves (as basic functionality) are not.
[02:51:15] <GothAlice> Also, alas.
[18:08:56] <kegster> i have an api endpoint setup to run .fetch() then .update() if conditions are met (changing the status of active to true or false) --- however another api endpoint uses .fetch() on it, and the data is unaltered. i literally have to run the first API endpoint TWICE for it to stick, everytime guaranteed. any reasons for this possibly?
[22:34:58] <Wulf> Hello!
[22:38:02] <Wulf> I've got a collection with rows like {"src": 10, "seq": 4819203, "keys": "values"}. There are ~ 100 different values for "src". Each (src, seq) is unique. How can I do a query like "Give me the last 10 rows for each src"? "last" would here mean the rows with the largest seq values.