Hinting aggregation or mapreduce operations?

56 views
Skip to first unread message

Esteban Feldman

unread,
Nov 7, 2012, 10:15:30 AM11/7/12
to mongod...@googlegroups.com
Hi all.

I'm performance tunning my application and found that some aggregation and mr operations take long time. So I try to .explain() the query for those operations and found that mongo doesn't choose wisely, if I hint at it it will be lot faster than the original (in 1 query from 16700ms to 29ms).

So my question is if there is a way to give hint to aggregation and or MR operations?

Thanks

Dwight Merriman

unread,
Nov 8, 2012, 3:02:28 PM11/8/12
to mongod...@googlegroups.com
i think you can use $hint in your query expression you are doing with agg framework and/or MR.  maybe.

Dwight Merriman

unread,
Nov 8, 2012, 3:46:22 PM11/8/12
to mongod...@googlegroups.com
sorry that doesn't work
nevermind

this is a future feature we need to add

what is the query that requires a hint?

Esteban Feldman

unread,
Nov 8, 2012, 3:56:37 PM11/8/12
to mongod...@googlegroups.com
Dwight: 


I have many pipelines that could use some hinting in the pipeline itself.

thanks
Reply all
Reply to author
Forward
0 new messages