Timeline for Find events associated with users on a certain date in MongoDB
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 29, 2022 at 10:13 | history | edited | Toby Speight | CC BY-SA 4.0 |
Spelling and formatting
|
| May 26, 2020 at 18:18 | history | edited | Sᴀᴍ Onᴇᴌᴀ♦ | CC BY-SA 4.0 |
add new line after code fence so it doesn't get displayed in code block
|
| May 26, 2020 at 11:34 | vote | accept | Nodegeek | ||
| May 26, 2020 at 11:25 | comment | added | Bohdan Stupak | I think that is the only modification that is needed. You can't eliminate nested loop completely, since you need to filter out only needed events. | |
| May 26, 2020 at 11:12 | comment | added | Nodegeek | ok thank you so much, I asked something else of the code that I wrote is efficient no need for another modification ? | |
| May 26, 2020 at 10:51 | comment | added | Bohdan Stupak | I'm not sure I've understood your comment correctly. My point is that you fetch from mongo only users that contain events in question. And that will reduce memory footprint | |
| May 25, 2020 at 12:06 | comment | added | Nodegeek | I think you are right I see, instead of populating all data user just fetch the data needed with only one connexion DB, so as per your answer my code is corrected the nested loops part? | |
| May 25, 2020 at 11:09 | history | answered | Bohdan Stupak | CC BY-SA 4.0 |