MongoDB changeStreams 可以监听系统级别 collections 吗?

Can MongoDB changeStreams listen to system level collections?

由于他们从 3.6 版开始引入的 MongoDB changestreams 上可用的文档有限,我无法断定 MongoDB changestreams 是否让我们听系统 collection 更改。

目前,我对system.profilecollection感兴趣。

从 MongoDB v4.0 开始,您无法在内部 database.system.profile 集合上打开更改流。

该集合仅供内部使用,未包含在 replica set oplog 中,并且由于变更流依赖于 oplog,因此无法广播变更事件。