MongoDB change streams: Which has best performance, watching collections or whole database?

Viewed 25

In the past we had issues with performance when we opened too many streams on collections due to poolSize. Is it better for performance to instead watch a database stream and do the filtering programmatically so only 1 change stream is used?

0 Answers
Related