MongoCursor
PHP Manual

MongoCursor::hint

(PECL mongo >=0.9.0)

MongoCursor::hintGives the database a hint about the query

Beschreibung

public MongoCursor MongoCursor::hint ( array $key_pattern )

Parameter-Liste

key_pattern

Indexes to use for the query.

Rückgabewerte

Returns this cursor.

Fehler/Exceptions

Throws MongoCursorException if this cursor has started iterating.


MongoCursor
PHP Manual