Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use $elemMatch operator for searching an announcement #40

Open
furkansimsekli opened this issue Nov 24, 2023 · 1 comment
Open

Use $elemMatch operator for searching an announcement #40

furkansimsekli opened this issue Nov 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@furkansimsekli
Copy link
Member

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()

@furkansimsekli furkansimsekli added enhancement New feature or request improvement !!!deprecated don't use!!! and removed enhancement New feature or request labels Nov 24, 2023
@furkansimsekli furkansimsekli added enhancement New feature or request and removed improvement !!!deprecated don't use!!! labels Mar 17, 2024
@furkansimsekli
Copy link
Member Author

I will be making changes to database design. Until then, this issue will be stalled. Probably #71 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant