hint ( mdb-query-msg index-hint -- mdb-query-msg )


Vocabulary
mongodb.driver

Inputs
mdb-query-msga query
index-hinta hint to an index


Outputs
mdb-query-msga query


Word description
Annotates the query with a hint to an index. For detailed information see: https://www.mongodb.org/display/DOCS/Optimizing+Mongo+Performance#OptimizingMongoPerformance-Hint

Examples
USING: mongodb.driver ; "db" "127.0.0.1" 27017 <mdb> [ "mycollection" H{ { "name" "Alfred" } { "age" 70 } } <query> H{ { "name" 1 } } hint find ] with-db


Definition

GENERIC#: hint 1 ( mdb-query-msg index-hint -- mdb-query-msg )


Methods