Skip to content

Opening Change Stream with 30 specified collection or watch on database with 100 collection #3179

Closed Answered by alcaeus
masterbater asked this question in General

You must be logged in to vote

There isn't any clear guidance, except for "it depends". If you find yourself constrained by lots of connections, it might be more beneficial to open a single change stream, filter for the events and collections you're looking for. On the other hand, if you find you're getting lots of events for all collections combined to the point where it's starting to bottleneck, you'll want to create multiple change streams to handle them in parallel, using multiple connections to the server.

Replies: 2 comments 2 replies

You must be logged in to vote
0 replies

You must be logged in to vote
2 replies
@alcaeus

Answer selected by masterbater
@masterbater

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
2 participants