背靠背协议是什么意思| peaches是什么意思| 12月29号是什么星座| 自己做生意叫什么职业| 囊中羞涩什么意思| 甘蔗男是什么意思| 苋菜与什么食物相克| 血液发黑是什么原因| 亮剑是什么意思| 10月29日是什么星座| 急性咽喉炎吃什么药好得快| 睾丸疼是什么原因| 氯雷他定为什么比西替利嗪贵| 时过境迁是什么意思| 忻字五行属什么| 太多的理由太多的借口是什么歌| 胸部里面有个圆圆的硬东西是什么| 装修都包括什么| 手串什么材料的最好| 低密度脂蛋白胆固醇偏低是什么意思| 唔什么意思| 独什么心什么| 气血亏吃什么补的快| 潜能什么意思| 花斑癣用什么药膏好| 咽喉炎有什么症状| 胃不舒服吃什么药| 用淘米水洗脸有什么好处| 豹子是什么牌子| 体虚是什么原因引起的| 百步穿杨是什么意思| 喝什么茶| 夜宵吃什么好| 生完孩子可以吃什么水果| 反流性食管炎吃什么药| 孕吐严重是什么原因| 阴唇是什么颜色| 心经讲的是什么| 999是什么意思| 狂犬疫苗打在什么部位| 法国公鸡是什么牌子| 小孩子上户口需要什么证件| 落户什么意思| 痞子是什么意思| fsa是什么意思| 为什么会厌学| 经常口腔溃疡挂什么科| 爱情是个什么东西| 一直打嗝是什么原因引起的| 塔塔粉是什么粉| 胃寒能吃什么水果| la是什么意思| 聚乙二醇是什么| 血糖高什么水果不能吃| 肚子胀气吃什么食物好| 施华洛世奇水晶是什么材质| 上海副市长什么级别| 世界上最大的单位是什么| 血沉偏高是什么原因| 妙哉妙哉是什么意思| 什么是强迫症| 乙肝25阳性什么意思| 扁平苔藓有什么症状| 牙痛吃什么药最快见效| 花胶有什么功效与作用| 心率高吃什么药| 病理单克隆抗体检测是什么| 什么是扁平疣图片| 扁平足看什么科| 69年属什么生肖| 为什么会长寻常疣| 尿有味是什么原因| 蘑菇和什么不能一起吃| 女属猪的和什么属相最配| 洋气是什么意思| rrl是什么牌子| 彤五行属什么| 肩颈疼痛挂什么科| 吃什么去湿气| 金乐什么字| 查电解质是查什么| 宫颈那囊什么意思| 血稠吃什么药最好| 沉淀是什么意思| 尿茶色尿是什么原因| 浪琴名匠系列什么档次| 弯脚杆是什么意思| 梦见长大水是什么意思| 过生日送什么礼物好| 胆固醇为什么会高| 老人吃饭老是噎着是什么原因| 9月初是什么星座| 癫痫病是什么病| 门静脉高压是什么意思| 吃什么补叶酸最快| 脾不统血吃什么中成药| 魁元是什么意思| 血热吃什么好| 动不动就出汗是什么原因| 带状疱疹是什么原因引起| 策字五行属什么| 玉越戴越亮是什么原因| 什么一清二白| 轻微手足口病吃什么药| 避重就轻什么意思| 有脚气是什么原因引起的| 猪蹄子炖什么好吃| 万象更新是什么生肖| 蜂窝组织炎是什么病| 舌苔厚白腻是什么原因引起的| 麻疹是什么症状| 什么时候会怀孕| 策反是什么意思| 钥字五行属什么| 放屁臭吃什么药| 晚上睡不着吃什么药| 中水是什么意思| 梭子蟹什么时候上市| 碘伏和碘酒有什么区别| 什么叫公租房| 做体检挂什么科| 莲花有什么寓意| 蜘蛛吃什么| 西瓜与什么食物相克| 预计是什么意思| 生育险是什么| 什么门比较好| 6.15是什么日子| 日可以加什么偏旁| 六根不净是什么意思| 为什么会长牙结石| 手臂有痣代表什么| 黍米是什么米| p波高尖代表什么| 一什么红枣| 胃烧吃什么药| 为什么会呕吐| 阿托品是什么药| 手为什么会长水泡| 第三代试管是什么意思| 那天午后我站在你家门口什么歌| 阴道炎要用什么药| 消化不好吃什么药最好| 胆囊炎不能吃什么食物| 剪舌系带挂什么科| 低血糖什么不能吃| 支气管炎是什么| 呓语是什么意思| 近水楼台是什么意思| 苹果什么时候出新手机| 多吃海带有什么好处和坏处| 人参归脾丸适合什么人吃| 吃什么去肝火见效快| 特工是什么意思| 二尖瓣少量反流是什么意思| 胎心快是什么原因| 慢性胃炎能吃什么水果| 竹叶青是什么茶| 怀孕吃什么水果比较好| 怀孕吃什么宝宝会白| 省委组织部长是什么级别| 满身红点是什么病| rainbow什么意思| 胆红素高吃什么食物能降得快| 什么是甲状腺结节病| 万里晴空什么意思| 减肥期间可以吃什么| 五花肉是什么肉| 脂肪粒是什么原因引起的| 八月七号是什么星座| 天肖是什么生肖| 地级市市长什么级别| 火加良念什么| 什么鱼最好养| 橘猫是什么品种| 人为什么会发热| 一什么椅子| 29周岁属什么生肖| 膝关节置换后最怕什么| 酒酿是什么| 拉比是什么意思| 吃什么解暑| 孕妇刚生完孩子吃什么好| 牙龈萎缩用什么牙膏| 仓鼠是什么动物| 嗓子痒痒是什么原因| 也是什么意思| 拉肚子吃什么蔬菜| 乌龟死了有什么预兆| 舌边有齿痕是什么原因| 梦见鞋丢了是什么意思| 夏天可以种什么蔬菜| 青少年手抖是什么原因| 6月19日是什么日子| 吕布的武器是什么| 五福是什么| 舌苔厚发黄是什么原因| 癫痫挂什么科| 什么茶叶降血压最好| 送女生礼物送什么好| 什么叫自私的人| 淋巴在什么位置| 窈窕是什么意思| 矬是什么意思| 早上9点多是什么时辰| 脂肪肝吃什么药好得快| 重庆房价为什么这么低| 吃什么可以祛痘排毒| 什么是什么| 公务员是什么职业| 公筷是什么意思| 冷喷机喷脸有什么好处| 丝瓜水敷脸有什么作用| 睡眠不好吃什么药最有效| 春天的花开秋天的风是什么歌| 什么的枝叶| 消化道出血吃什么药| 子子念什么| 大三阳转小三阳意味着什么| 英国为什么要脱欧| 西红柿和什么不能一起吃| 梅花什么颜色| 黄体酮有什么作用| EV71疫苗是什么| 女生的下体长什么样| 什么叫软文| 高抬腿运动有什么好处| 早泄什么意思| 林彪为什么要叛逃| 肝血不足吃什么补最快| 孕酮低跟什么有关系| 外阴苔藓用什么药膏| 低压高吃什么药最有效| 金骏眉茶是什么茶| 前胸后背疼挂什么科| 七喜是什么饮料| 徽音是什么意思| 今天穿什么| 口炎读什么| 卵黄囊是什么| 鸡蛋炒什么菜好吃| 吹空调喉咙痛什么原因| 农历今天什么日子| 偶尔失眠是什么原因| 紫色五行属什么| 一直打哈欠是什么原因| ser是什么氨基酸| 肤色暗黄适合穿什么颜色的衣服| 窦性心动过缓吃什么药| 阴道红肿是什么原因| crp是什么检查项目| 碳水是什么意思| 95年猪五行属什么| 蜻蜓属于什么类动物| belle什么意思| 佳字属于五行属什么| 盆腔静脉石是什么意思| 甲亢不能吃什么| 雪中送炭是什么意思| 卵巢早衰是什么原因引起的| 小儿便秘吃什么药| 饕餮长什么样| 什么样的树| 春暖花开是什么生肖| 百度
Docs Menu
Docs Home
/
Database Manual
/ /

方便游客 遂宁今年将新增加80座旅游厕所

Changed in version 5.0.

A query with read concern "snapshot" returns majority-committed data as it appears across shards from a specific single point in time in the recent past. Read concern "snapshot" provides its guarantees only if the transaction commits with write concern "majority".

Read concern "snapshot" is available for multi-document transactions, and starting in MongoDB 5.0, certain read operations outside of multi-document transactions.

  • If the transaction is not part of a causally consistent session, upon transaction commit with write concern "majority", the transaction operations are guaranteed to have read from a snapshot of majority-committed data.

  • If the transaction is part of a causally consistent session, upon transaction commit with write concern "majority", the transaction operations are guaranteed to have read from a snapshot of majority-committed data that provides causal consistency with the operation immediately preceding the transaction start.

Important

A "snapshot" read can only be performed within the time period specified by minSnapshotHistoryWindowInSeconds. A read operation that lasts longer than minSnapshotHistoryWindowInSeconds may terminate.

Outside of multi-document transactions, read concern "snapshot" is available on primaries and secondaries for the following read operations:

All other read commands prohibit "snapshot".

For a list of all operations that accept read concerns, see Operations That Support Read Concern.

Multi-document transactions support read concern "snapshot" as well as "local", and "majority".

Note

You set the read concern at the transaction level, not at the individual operation level. To set the read concern for transactions, see Transactions and Read Concern.

New in version 5.0.

Outside of multi-document transactions, reads with read concern "snapshot" support the optional parameter atClusterTime. The parameter atClusterTime allows you to specify the timestamp for the read. To satisfy a read request with a specified atClusterTime of T, the mongod performs the request based on the data available at time T.

You can obtain the operationTime or clusterTime of an operation from the response of db.runCommand() or from the Session() object.

The following command performs a find operation with read concern "snapshot" and specifies that the operation should read data from the snapshot at cluster time Timestamp(1613577600, 1).

db.runCommand( {
find: "restaurants",
filter: { _id: 5 },
readConcern: {
level: "snapshot",
atClusterTime: Timestamp(1613577600, 1)
},
} )

If the parameter atClusterTime is not supplied, the mongos, or in single member replica sets the mongod, selects the timestamp of the latest majority-committed snapshot as the atClusterTime and returns it to the client.

Outside of transactions, "snapshot" reads are guaranteed to read from majority-committed data.

  • The allowed values for atClusterTime depend on the minSnapshotHistoryWindowInSeconds parameter. minSnapshotHistoryWindowInSeconds is the minimum time window in seconds for which the storage engine keeps the snapshot history. If you specify an atClusterTime value older than the oldest snapshot retained according to minSnapshotHistoryWindowInSeconds, mongod returns an error.

  • If you perform a read operation with "snapshot" against a delayed replica set member, the returned majority-committed data could be stale.

  • It is not possible to specify atClusterTime for "snapshot" inside of causally consistent sessions.

Starting in MongoDB 8.0, you can use read concern "snapshot" on capped collections.

Back

"linearizable"

On this page

吽是什么意思 吃什么补蛋白 地铁什么时候停运 先兆性流产有什么症状 胎儿双肾盂分离是什么意思
维生素d和d3有什么区别 嘴里发苦是什么原因 虹吸是什么意思 胃息肉是什么原因造成的 免疫五项能查出什么病
石女是什么意思啊 红斑狼疮是什么症状 若干是什么意思 九转大肠是什么菜系 女性尿路感染挂什么科
奇花初胎矞矞皇皇是什么意思 粉红色泡沫样痰是什么病 菩提子手串有什么好处 什么叫空调病 骨折可以吃什么
肌钙蛋白高是什么意思hcv8jop3ns6r.cn 狮子座女和什么座最配jinxinzhichuang.com 产妇能吃什么水果hcv8jop2ns5r.cn 寿司醋可以用什么代替hcv8jop1ns7r.cn 嗓子疼吃什么药见效最快hcv8jop3ns9r.cn
性出血是什么原因造成的呢要怎么办hcv8jop8ns6r.cn 心有戚戚焉什么意思hcv8jop3ns6r.cn 检查肝脏应该挂什么科jasonfriends.com 断头路是什么意思96micro.com 婚检是什么意思hcv7jop6ns9r.cn
20点是什么时辰hcv7jop9ns9r.cn vb是什么意思hcv9jop0ns1r.cn 尿蛋白十一什么意思bjcbxg.com 身体乳是什么hcv9jop0ns4r.cn 脉搏低是什么原因hcv8jop2ns7r.cn
尿酸高平时要注意什么hcv8jop5ns5r.cn 4.23是什么星座hcv9jop1ns4r.cn 金鸡独立是什么意思hcv9jop2ns4r.cn 遁入空门是什么意思aiwuzhiyu.com 胃窦炎是什么病hcv9jop0ns8r.cn
百度