MongoCursor::hint
(PECL mongo >=0.9.0)
MongoCursor::hint — Gives the database a hint about the query
说明
参数
-
index
-
Index to use for the query. If a string is passed, it should correspond to an index name. If an array or object is passed, it should correspond to the specification used to create the index (i.e. the first argument to MongoCollection::ensureIndex()).
返回值
Returns this cursor.
错误/异常
Throws MongoCursorException if this cursor has started iterating.
更新日志
版本 | 说明 |
---|---|
1.4.0 |
The |