V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐工具
RoboMongo
推荐书目
50 Tips and Tricks for MongoDB Developers
Related Blogs
Snail in a Turtleneck
sheaven
V2EX  ›  MongoDB

关于子文档命名规范的问题

  •  
  •   sheaven · Mar 26, 2018 · 3552 views
    This topic created in 2962 days ago, the information mentioned may be changed or developed.
    官方文档中只明确了文档的命名不能$开头、不能包括 dot(.),不过没有明确子文档的规范。
    最近在排查一个数据写入偶尔丢失的问题的时候发现,生存环境 3.2 存在问题,开发环境 3.4 正常。
    最后排查下来是子文档名称中包含了 . 如
    "disk_use" : {
    "/" : 57,
    "/boot" : 15,
    "/data" : 95,
    "/storage/video.app" : 4
    }

    那么问题来了,3.4 里面要去操作这个子文档该怎么写?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   809 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 22:14 · PVG 06:14 · LAX 15:14 · JFK 18:14
    ♥ Do have faith in what you're doing.