MongoDB??MongoDB?????????
???????????? ???????[ 2016/8/31 10:21:47 ] ????????????? MongoDB ???????
????MongoDB?????????ó??? ?????
????MongoDB?????????????????????????????????????????BSON??????ζ??MongoDB????????????????????????????????????????????????????????key??value??????????????????С????????????????MongoDB????????????????????е?”??”????????????????????÷??????????????????????????????????????MongoDB??MySQL?????????????
????MongoDB
????MySQL
???????(document)
??????(row)
????????(collection)
??????(table)
?????????(db)
????????(schema)
???????(instance)
???????(instance)
?????????????????
????MongoDB?????ú?????????????????????????MongoDB??????????????????????????????????????????????????????Ч???????????????????????????????????????????????????????????????????????м?????????????????????????????????????????????????MongoDB?????????????Primary???????Secondary?????????á???????????????????????????????????崻????????????????Secondary??????????μ?Primary????????????????????????????????????д?????
?????????
?????????????棬????????????????????????????????????????????????????????????????????????????????????????????????????????????????????MongoDB?з????Ч???????????????????????Mongos?????????????????????????Mongo??????????????????????????·???????滺?????????д?????????????????Ч??????????????????????????mongos???????ò???????????????????????????Mongos???????????????
?????????????????mongos????????ò???????????mongos?????????mongos?????Config Servers?б????????????·???????mongos???Config Servers???????????????????Shard Server???
???????????
???????MongoDB 3.0??????MongoDB????????????????洢????WiredTiger???????????????????????????????????????????MMAP??????????????????????5?????????????????????????????
???????????ó???
????MongoDB?????????????????????????????????н?????????ó????????????
????1????????
????MongoDB??????????????Щ?????????TTL????(time-to-live index)???????????????ù???????????Aggregation Pipeline??Map-Reduce??????????????????????????????????????????????
????2 ????????
?????????????????????MongoDB??????”???????”??????ν?????????????????????С???????岢????????????????????У????繒???????MongoDB?????????????????????????????ζ???д????????????????д?????????????????????????????????????????????????????????????д??Ч??????
????3 LBS?????
???????ЩLBS??????У????MongoDB??з???????????MongoDB????????????????????????????????????????????????intersection??within??nearness???????????????????????????εκ????????????MongoDB???????????????????????·????
????3 ????????洢????
???????????????sharding???????????????????????????????????????????????????????WiredTiger??????????Ч??????????????????????????????????MongoDB?????????????洢??
????4 ????ú??д????????????
????MongoDB??????????????????????????????????????????????????????????????ú??д????
????5 ???????????????
????MongoDB???????no-schema??????????MongoDB????????????????????????????????????????????????????????????????Ч???????????
???????Щ?????£?MongoDB???????????????????????????
????1 MongoDB???????????????????????????????y??鯔??MongoDB
????2 MongoDB???????join????????????????????????????????????????????MongoDB??????????????????????
????3 MongoDB?????????????????SSD???????????????????????????????mongos??????????????????????????????????????????????????????????????????????????????
????MongoDB????????????
??????????MongodB????и????????????????????????????????????????????????MongoDB?????????????????MongoDB????????????UCloud????MongoDB?????????MongoDB????????????????????
????????????
????UCloud????????MongoDB????????????????????????????????????????????UCloud??MongoDB????2.4??2.6??3.0??3.2?????????汾????????????????????????????????????????????????????????MongoDB?????????????????????????????????configsvr??mongos??????????????????SSD?????MongoDB??
???????????????????
?????????????????????????????????????MongoDB????????У???????????????????????????????????????????????????????????????Ч????????????滮???????????DB??????????????????????л?????????????????????????????MongoDB??????????п????????????????????з??飬?????????????????????????????????Ч???????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11