[英]Mongodb cluster:can query on normal collections ,but not on system.users
[英]Can MongoDB changeStreams listen to system level collections?
由於他們引入了3.6版以上的MongoDB changestreams上的可用文檔有限,因此我無法斷定MongoDB changestreams是否允許我們監聽系統集合的變化。
目前,我對system.profile收集感興趣。
從MongoDB v4.0開始,您無法在內部數據庫 .system.profile集合上打開更改流。
該集合保留供內部使用,並且不包含在副本集oplog中 ,並且由於changestream依賴oplog
因此它將無法廣播更改事件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.