首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏数据库干货铺

    MongoDB副本集调整节点

    use admin switched to db admin test1:PRIMARY> rs.status() { "set" : "test1", "date" : ISODate ("2023-10-23T02:30:54.919Z"), "lastDurableWallTime" : ISODate("2023-10-23T02:30:54.919Z ("2023-10-23T02:30:24.912Z"), "wMajorityWriteAvailabilityDate" : ISODate("2023-10-23T02 ("2023-10-23T02:30:54Z"), "optimeDurableDate" : ISODate("2023-10-23T02:30:54Z ("2023-10-23T02:30:54Z"), "optimeDurableDate" : ISODate("2023-10-23T02:30:54Z

    70160编辑于 2023-10-25
  • 来自专栏MongoDB中文社区

    MongoDB按需物化视图介绍

    示例 假设现在接近2019年1月末,集合bakesales包含按项目分类的销售信息: db.bakesales.insertMany( [ { date: new ISODate("2018-12 -01"), item: "Cake - Chocolate", quantity: 2, amount: new NumberDecimal("60") }, { date: new ISODate -02"), item: "Cake - Peanut Butter", quantity: 5, amount: new NumberDecimal("90") }, { date: new ISODate , item: "Cookies - Chocolate Chip", quantity: 20, amount: new NumberDecimal("80") }, { date: new ISODate 执行初始运行 对于初始运行,你可以传入一个日期new ISODate("1970-01-01"): updateMonthlySales(new ISODate("1970-01-01")); 初始运行后

    1.5K20编辑于 2022-01-04
  • 来自专栏飞鸟的专栏

    Reids集群部署(三)

    ("2020-04-11T06:55:43.562Z"), "lastDurableWallTime" : ISODate("2020-04-11T06:55:43.562Z ("2020-04-11T06:55:23.013Z"), "wMajorityWriteAvailabilityDate" : ISODate("2020-04-11T06 ("2020-04-11T06:55:31Z"), "optimeDurableDate" : ISODate("2020-04-11T06:55:31Z "lastHeartbeatRecv" : ISODate("2020-04-11T06:55:42.499Z"), "pingMs" : NumberLong ("2020-04-11T06:55:31Z"), "optimeDurableDate" : ISODate("2020-04-11T06:55:31Z

    37841编辑于 2022-02-24
  • 来自专栏数据库干货铺

    mongodb副本集主从切换

    node3 192.168.56.199:27017 SECONDARY test12:PRIMARY> rs.status() { "set" : "test12", "date" : ISODate ("2021-12-16T13:45:18.626Z"), "lastDurableWallTime" : ISODate("2021-12-16T13:45:18.626Z") }, ("2021-12-14T15:24:57.321Z"), "wMajorityWriteAvailabilityDate" : ISODate("2021-12-14T15:24:58.285Z " : ISODate("2021-12-16T13:45:27.463Z"), "lastHeartbeatRecv" : ISODate("2021-12-16T13:45:26.387Z " : ISODate("2021-12-16T13:45:28.253Z"), "lastHeartbeatRecv" : ISODate("2021-12-16T13:45:27.555Z

    3K20编辑于 2021-12-17
  • 来自专栏从零开始的linux

    mongodb分片

    "lastHeartbeat" : ISODate("2018-02-05T11:08:23.635Z"), "lastHeartbeatRecv" : ISODate("2018 "lastHeartbeat" : ISODate("2018-02-05T11:08:23.674Z"), "lastHeartbeatRecv" : ISODate("2018 "lastHeartbeat" : ISODate("2018-02-05T11:53:10.139Z"), "lastHeartbeatRecv" : ISODate("2018 "lastHeartbeat" : ISODate("2018-02-05T12:35:33.244Z"), "lastHeartbeatRecv" : ISODate("2018 "lastHeartbeat" : ISODate("2018-02-05T12:42:56.392Z"), "lastHeartbeatRecv" : ISODate("2018

    1.8K40发布于 2018-04-25
  • 来自专栏飞鸟的专栏

    MongoDB分片集群部署(二)

    ("2020-04-11T06:55:43.562Z"), "lastDurableWallTime" : ISODate("2020-04-11T06:55:43.562Z ("2020-04-11T06:55:23.013Z"), "wMajorityWriteAvailabilityDate" : ISODate("2020-04-11T06 ("2020-04-11T06:55:31Z"), "optimeDurableDate" : ISODate("2020-04-11T06:55:31Z "lastHeartbeatRecv" : ISODate("2020-04-11T06:55:42.499Z"), "pingMs" : NumberLong ("2020-04-11T06:55:31Z"), "optimeDurableDate" : ISODate("2020-04-11T06:55:31Z

    48220编辑于 2022-02-24
  • 来自专栏CSDN

    mongodb 分组查询、指定时间段查询

    userId':{$in:[1,2,3,4,5,6,7,8]}}) 查询指定时间区间 2019-03-26整天的登录信息 db.UserLoginLog.find({'loginTime':{$gt:ISODate ('2019-03-26T00:00:00Z'),$lte:ISODate( '2019-03-26T23:59:59Z' )}}) 排序查询 db.UserLoginLog.find({}).sort ('2019-03-26T00:00:00Z'),$lte:ISODate( '2019-03-26T23:59:59Z' )},'isValid':1}}, {$group:{_id:"$userId "}} ]) 查询指定时间段内,userId总数 db.UserLoginLog.aggregate([ {$match:{'loginTime' : {$gt:ISODate('2019-03 -26T00:00:00Z'),$lte:ISODate( '2019-03-26T23:59:59Z' )},'isValid':1}}, {$group:{_id:"$userId"}},

    97110编辑于 2024-03-28
  • 来自专栏乐沙弥的世界

    MongoDB 复制集(Replica Set)

    ("2016-08-30T05:41:06Z"), "lastHeartbeat" : ISODate("2016-08-30T05:41:14.030Z ("2016-08-30T05:41:06Z"), "lastHeartbeat" : ISODate("2016-08-30T05:41:14.030Z ("1970-01-01T00:00:00Z"), "lastHeartbeat" : ISODate("2016-08-30T05:45:38.378Z ("2016-08-30T05:44:05Z"), "lastHeartbeat" : ISODate("2016-08-30T05:45:38.356Z ("2016-08-30T05:44:05Z"), "lastHeartbeat" : ISODate("2016-08-30T05:47:24.819Z

    4.7K00发布于 2018-08-08
  • 来自专栏飞鸟的专栏

    MongoDB分片集群部署(五)

    ("2020-04-11T07:23:16.099Z"), "lastDurableWallTime" : ISODate("2020-04-11T07:23:16.099Z ("2020-04-11T07:23:06.098Z"), "wMajorityWriteAvailabilityDate" : ISODate("2020-04-11T07 ("2020-04-11T07:23:16Z"), "optimeDurableDate" : ISODate("2020-04-11T07:23:16Z "lastHeartbeatRecv" : ISODate("2020-04-11T07:23:19.161Z"), "pingMs" : NumberLong ("2020-04-11T07:23:20.049Z"), "lastHeartbeatRecv" : ISODate("2020-04-11T07:23

    41820编辑于 2022-02-24
  • 来自专栏大数据成长之路

    MongoDB可视化工具Robo 3T基础使用

    在界面中加入下面的JSON数据 { marketno:'2', stockno:'600055', stock_name:'万东医疗', issue_date:ISODate ('1997-04-18'), issue_price:8.5400, list_date:ISODate('1997-05-19'), list_market:'上海证券交易所 ('2016-06-17'), updated_by:'system', updated_date:ISODate('2016-06-17'), assortment_id:'1 ' } { marketno:'2', stockno:'600059', stock_name:'古越龙山', issue_date:ISODate('1997-04- ('2016-06-17'), updated_by:'system', updated_date:ISODate('2016-06-17'), assortment_id:'1

    4.7K50发布于 2021-01-27
  • 来自专栏魔王卷子的专栏

    MongoDB副本集

    rs.status() 查看返回值: { "set" : "test", "date" : ISODate("2016-09-22T08:08:36.607Z"), "myState" : 1, " : ISODate("2016-09-22T08:08:32.078Z"), "pingMs" : NumberLong(0), "syncingTo" : "10.55.160.91: " : ISODate("2016-09-22T08:08:32.078Z"), "pingMs" : NumberLong(0), "syncingTo" : "10.55.160.91: " : ISODate("2016-09-22T09:28:52.095Z"), "pingMs" : NumberLong(0), "syncingTo" : "10.55.160.93: " : ISODate("2016-09-22T09:28:52.095Z"), "pingMs" : NumberLong(0), "syncingTo" : "10.55.160.93:

    1.9K10发布于 2019-06-01
  • 来自专栏golang云原生new

    索引实操练习

    db.mydoc.insertMany([ { item:"canvas", qty:120, size:{ h:28, w:35.5, uom:"cm" }, status:"A", createDate:ISODate type:"paper"}, {tag:"red", type:"electron"} ], size:{ h:14, w:21, uom:"cm" }, status:"A", createDate:ISODate type:"paper"}, {tag:"green", type:"electron"}], size:{ h:8.5, w:11, uom:"in" }, status:"P", createDate:ISODate "paper"}, {tag:"green", type:"electron"}], size:{ h:22.85, w:30, uom:"cm" }, status:"D", createDate:ISODate ("2016-02-11T20:20:13Z") }, { item:"sketchbook", qty:80, status:"A", createDate:ISODate("2016-02-12T20

    48920编辑于 2023-02-16
  • 来自专栏飞鸟的专栏

    MongoDB分片集群部署(四)

    ] } ) 返回值 { "ok" : 1 } 5.8、查询状态 rs.status() 返回值 { "set" : "shard2", "date" : ISODate ("2020-04-11T07:18:38.648Z"), "lastDurableWallTime" : ISODate("2020-04-11T07:18:38.648Z ("2020-04-11T07:18:38.537Z"), "lastHeartbeatRecv" : ISODate("2020-04-11T07:18 ("2020-04-11T07:18:28Z"), "optimeDurableDate" : ISODate("2020-04-11T07:18:28Z "lastHeartbeatRecv" : ISODate("2020-04-11T07:18:38.802Z"), "pingMs" : NumberLong

    41410编辑于 2022-02-24
  • 来自专栏文渊之博

    mongo DB的一般操作

    ",         "Date" : ISODate("2015-02-11T03:12:03.061Z") } 插入 --插入文档对象 > db.blog.insert(post) ",         "Date" : ISODate("2015-02-11T03:17:07.219Z") } > db.blog.insert(post) 读取 --读取集合里一个文档 ",         "Date" : ISODate("2015-02-11T03:12:03.061Z") } --读取限定文档数 > db.blog.find().limit(100) ", "Date" : ISODate("2015-02-11T03:12:03.061Z") } { "_id" : ObjectId("54dac9b8c956bbcbefa8151d"), " ", "Date" : ISODate("2015-02-11T03:17:07.219Z") } --读取所有文档数 > db.blog.find() { "_id" : ObjectId

    85450发布于 2018-01-30
  • 来自专栏云数据库RDS

    部署MongoDB复制集群(最全)

    ("2022-11-22T07:52:46.945Z"), "lastDurableWallTime" : ISODate("2022-11-22T07:52:46.945Z ("2022-11-22T07:52:46Z"), "optimeDurableDate" : ISODate("2022-11-22T07:52:46Z" "lastDurableWallTime" : ISODate("2022-11-22T07:52:46.945Z"), "lastHeartbeat" : ISODate("2022-11-22T07:52:52.764Z"), "lastHeartbeatRecv" : ISODate("2022-11-22T07 ISODate("2022-11-22T07:52:52.764Z"), "lastHeartbeatRecv" : ISODate("2022-11-22T07

    90930编辑于 2022-11-22
  • 来自专栏OECOM

    在jsp页面中使用EL表达式格式化date日期

    }" type="time"/> 23:59:59 <fmt:formatDate value="${<em>isoDate</em>}" type="date" dateStyle="default"/> 2004 -5-31 <fmt:formatDate value="${<em>isoDate</em>}" type="date" dateStyle="short"/> 04-5-31 <fmt:formatDate value ="${<em>isoDate</em>}" type="date" dateStyle="medium"/> 2004-5-31 <fmt:formatDate value="${<em>isoDate</em>}" type="date value="${isoDate}" type="time" timeStyle="short"/> 下午11:59 <fmt:formatDate value="${<em>isoDate</em>}" type= "time" timeStyle="medium"/> 23:59:59 <fmt:formatDate value="${<em>isoDate</em>}" type="time" timeStyle="long"

    2.3K20发布于 2020-07-01
  • 来自专栏飞鸟的专栏

    Zookeeper集群部署

    ("2020-04-11T06:55:43.562Z"), "lastDurableWallTime" : ISODate("2020-04-11T06:55:43.562Z ("2020-04-11T06:55:23.013Z"), "wMajorityWriteAvailabilityDate" : ISODate("2020-04-11T06 ("2020-04-11T06:55:31Z"), "optimeDurableDate" : ISODate("2020-04-11T06:55:31Z "lastHeartbeatRecv" : ISODate("2020-04-11T06:55:42.499Z"), "pingMs" : NumberLong ("2020-04-11T06:55:31Z"), "optimeDurableDate" : ISODate("2020-04-11T06:55:31Z

    68141编辑于 2022-02-24
  • 来自专栏AustinDatabases

    MongoDB Oplogs 到底都记录了什么 与 智者老冯

    "ts" : Timestamp(1639190792, 1), "h" : NumberLong(0), "v" : 2, "op" : "n", "ns" : "", "wall" : ISODate ); { "ts" : Timestamp(1639190792, 1), "h" : NumberLong(0), "v" : 2, "op" : "n", "ns" : "", "wall" : ISODate $cmd", "ui" : UUID("c3c70f0e-028e-4db8-85b4-79e8b65eccc9"), "wall" : ISODate("2021-12-11T02:46:43.802Z $cmd", "ui" : UUID("b2fb5908-b21b-4ed5-9f2d-218396875b19"), "wall" : ISODate("2021-12-11T02:46:43.806Z $cmd", "ui" : UUID("4a7fa891-c1a9-49a6-abc4-d94693030358"), "wall" : ISODate("2021-12-11T02:46:43.810Z

    48410编辑于 2023-12-20
  • 来自专栏全栈程序员必看

    mongo DB的一般操作

    .”, “Date” : ISODate(“2015-02-11T03:12:03.061Z”) } 插入 –插入文档对象 > db.blog.insert(post) > “title” : “Licz Blog Post”, “Content” : “Here is my blog Post.”, “Date” : ISODate “title” : “My Blog Post”, “Content” : “Here is my blog Post.”, “Date” : ISODate 54dac88dc956bbcbefa8151c”), “title” : “My Blog Post”, “Content” : “Here is my blog Post.”, “Date” : ISODate 54dac88dc956bbcbefa8151c”), “title” : “My Blog Post”, “Content” : “Here is my blog Post.”, “Date” : ISODate

    68910编辑于 2022-07-11
  • 来自专栏KaliArch

    搭建高可用MongoDB集群(分片)

    "lastHeartbeat" : ISODate("2017-12-04T07:42:08.637Z"),             "lastHeartbeatRecv" : ISODate("2017 "lastHeartbeat" : ISODate("2017-12-04T07:42:08.637Z"),             "lastHeartbeatRecv" : ISODate("2017 ("2017-12-04T07:51:53.597Z"),             "lastHeartbeatRecv" : ISODate("2017-12-04T07:51:51.243Z"), "lastHeartbeat" : ISODate("2017-12-04T08:04:30.527Z"),             "lastHeartbeatRecv" : ISODate("2017 "lastHeartbeat" : ISODate("2017-12-04T08:07:37.488Z"),             "lastHeartbeatRecv" : ISODate("2017

    5.7K120发布于 2018-05-30
领券