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

MongoDB driver should use goroutines to request all collections concurrently #3

Open
t-persson opened this issue Aug 31, 2021 · 0 comments

Comments

@t-persson
Copy link
Collaborator

Description

When doing an event by id request in the MongoDB driver, it has to request all collections. This is done sequentially today and should be done concurrently using goroutines.

Motivation

Faster requests.

Exemplification

If the event is in the last collection in the slice, then the user would have to wait until all other collections have been queried before they will get the event they requested.

Benefits

Faster lookups for users.

Possible Drawbacks

We would hammer mongodb, but that should not be a problem.

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

No branches or pull requests

1 participant