I'm new to mongodb and I want to use mongo map/reduce function in my php codes connected to my mongo database.
I have a document named videos with a large number of items, I want to get 10 items that have the largest values in specific field named "fc_total_share".
And by the way, as my "videos" document has really large number of items, do you think that map/reduce is a good way to retrieve specific items and if not would you guys please help me to find a better way.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…