• 当前标签:mongodb

mongodb Mongodb数据库索引、explain使用

Mongodb索引及explain使用 作用:在数据库查询数据速度更快 获取当前集合的索引 db.collections.getIndexes() 为当前集合对象创建索引的命令 db.collections.ensureIndex({name:1}) 删除当前集合对象索引的命令 db.collections.dropI

2020-06-06 17:27:09 392 0 0
阅读详情
  • 1
前往