摘要: 1. 创建哈希索引 哈希索引相较于普通索引查询速度会快些(哈希散列分布)eg: db.ensureIndex({"created": "hashed"})2. 查看查询计划eg: db.find(query).explain();"cursor" : "BasicCursor", 说明没有索引发挥作 阅读全文
posted @ 2020-08-07 15:55 路口有雾 阅读(399) 评论(0) 推荐(0) 编辑