You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fetching all the announcements and looping through them to understand whether the given announcement is new or not might be memory intensive when there are A LOT of saved announcements. We can use $elemMatch for this task.
Also I'll see where else I can improve the performance with better queries.
Note: To reduce the number of requests that we send to database, we can use db.collection.bulkWrite()
The text was updated successfully, but these errors were encountered:
Fetching all the announcements and looping through them to understand whether the given announcement is new or not might be memory intensive when there are A LOT of saved announcements. We can use
$elemMatch
for this task.Also I'll see where else I can improve the performance with better queries.
Note: To reduce the number of requests that we send to database, we can use
db.collection.bulkWrite()
The text was updated successfully, but these errors were encountered: