摘要: 语法: db.collection.createIndex(keys,options) options常用: background Boolean 可以保证索引在后台运行,不影响其它操作,对于大集合数据比较有用。 unique Boolean 是否唯一索引 name String 索引名称。不指定则 阅读全文
posted @ 2020-05-28 16:37 sblack 阅读(294) 评论(0) 推荐(0) 编辑