摘要: 1、启动mongo服务:mongod --port 8051 --dbpath E:\GameDB\DB --wiredTigerCacheSizeGB 5(端口,数据路径、内存上限控制,单位为G) 2、简单的mongo定时完全备份批处理 阅读全文
posted @ 2017-11-23 21:55 青树 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 遇到一个或关系查询,度娘了下,mongo语句很容易实现:db.RechargeList.find({"IsRead":{$gt:0},"$or":[{"Account":"lyp"},{"DoneeObjId":"59ddcfb45208dc2c0cfb6ff3"}]}),但是在golang里还是有 阅读全文
posted @ 2017-11-23 21:31 青树 阅读(1986) 评论(0) 推荐(0) 编辑