I have an entries collection and a domain collection like the following
entries:
{
{
entry_id:1,
title:"Title 1",
domain_id:1
},
{
entry_id:2,
title:"Title 2",
domain_id:1
},
{
entry_id:3,
title:"Title 3",
domain_id:2
}
}
domains:
{
{
domain_id:1,
domain:"Google",
rank:1
},
{
domain_id:2,
domain:"Yahoo",
rank:2
}
}
I am looking to gather all the information together and sort by the rank of the domain. Coming from a MySQL background I would normally join the entries and domains on the domain_id and sort by the rank field. One of my co-workers suggested looking into map/reduce, but after doing some reading I'm unsure how to apply that here.