Handbook
Glossary
hint ( mdb-query-msg index-hint -- mdb-query-msg )
Vocabulary
mongodb
.
driver
Inputs
mdb-query-msg
a query
index-hint
a hint to an index
Outputs
mdb-query-msg
a 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
IN:
mongodb.driver
GENERIC#:
hint
1
( mdb-query-msg index-hint -- mdb-query-msg )
Methods
USING:
accessors
mongodb.driver
mongodb.msg
;
M:
mdb-query-msg
hint
>>hint
;