2017年4月8日

MongoDB索引

摘要: 1、查看索引 查看数据库使用到的所有索引 db.system.indexes.find() db.system.spacename.find() 查看指定文档使用的索引 db.collection.getIndexes(); 2、创建索引 创建普通的单列索引 db.collection.ensure 阅读全文

posted @ 2017-04-08 17:53 iaknehc 阅读(198) 评论(0) 推荐(0) 编辑

导航