MongoCursor
PHP Manual

MongoCursor::hint

(PECL mongo >=0.9.0)

MongoCursor::hintGives the database a hint about the query

설명

public MongoCursor MongoCursor::hint ( array $key_pattern )

인수

key_pattern

Indexes to use for the query.

반환값

Returns this cursor.

오류/예외

Throws MongoCursorException if this cursor has started iterating.


MongoCursor
PHP Manual