A.索引通常能夠極大的提高查詢的效率,如果沒有索引,MongoDB在讀取數(shù)據(jù)時(shí)必須掃描集合中的每個(gè)文件并選取那些符合查詢條件的記錄B.索引可以加快查詢,但是同時(shí)降低了修改插入等性能C.索引是對數(shù)據(jù)庫表中一列或多列的值進(jìn)行排序的一種結(jié)構(gòu)D.MongoDB默認(rèn)使用線性表來組織索引文件
A.db.collectionName.indexSize()B.db.collectionName.totalIndexSize()C.db.collectionName.totalIndex()D.db.collectionName.totalSize()
A.db.collectionName.createIndex(keys,options)B.db.collectionName.create(keys,options)C.db.collectionName.index(keys,options)D.db.collectionName.addIndex(keys,options)