hint
英 [h?nt]? ?美 [h?nt]??
n.暗示;線索,跡象;提示,注意事項;微量
vt.暗示
vi.暗示,提示
MongoDB hint()函數(shù) 語法
作用:雖然MongoDB查詢優(yōu)化器一般工作的很不錯,但是也可以使用hints來強迫MongoDB使用一個指定的索引。
語法:>db.users.find({gender:"M"},{user_name:1,_id:0}).hint({gender:1,user_name:1})
MongoDB hint()函數(shù) 示例
rree