MongoCursor::hint

(PECL mongo >=0.9.0)

MongoCursor::hintGives the database a hint about the query

Beskrivelse

public MongoCursor MongoCursor::hint ( array $key_pattern )

Parametre

key_pattern

Indexes to use for the query.

Returnerings Værdier

Returns this cursor.

Fejl/Undtagelser

Throws MongoCursorException if this cursor has started iterating.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top