Question 1hardmultiple choice
Read the full Indexing and Performance explanation →Refer to the exhibit. Why is the query execution plan performing a FETCH stage after an IXSCAN, and how can it be optimized?
Exhibit
db.collection.find({status: 'active', type: 'user'}).sort({created: -1}).explain('executionStats')
'winningPlan': {
'stage': 'FETCH',
'inputStage': {
'stage': 'IXSCAN',
'keyPattern': { status: 1, type: 1 }
}
}