标签:io os java ar sp cti on c ad
create,read, update,delete
db.collection.count() db.collection.distinct() db.collection.findOne() db.collection.remove() db.collection.save() db.collection.update()
cursor.count() cursor.explain() cursor.hint() cursor.limit() cursor.next() cursor.skip() cursor.sort() cursor.toArray()
// 分析查询的性能 db.inventory.find( { type: ‘food‘ } ).explain() // 分析不同索引的性能 ???db.inventory.find( { type: ‘food‘ } ).hint( { type: 1 } ).explain() db.inventory.find( { type: ‘food‘ } ).hint( { type: 1, name: 1 } ).explain()
标签:io os java ar sp cti on c ad
原文地址:http://my.oschina.net/shanhe/blog/314767