...
"winningPlan" : {
"stage" : "FETCH",
"filter" : {
"update" : {
"$gt" : ""
}
},
"inputStage" : {
"stage" : "IXSCAN",
"keyPattern" : {
"sort" : -1
},
"indexName" : "_sort_",
"isMultiKey" : false,
"multiKeyPaths" : {
"sort" : []
},
"isUnique" : false,
"isSparse" : false,
"isPartial" : false,
"indexVersion" : 2,
"direction" : "forward",
"indexBounds" : {
"sort" : [
"[MaxKey, MinKey]"
]
}
}
},
"rejectedPlans" : [
{
"stage" : "SORT",
"sortPattern" : {
"sort" : -1.0
},
"inputStage" : {
"stage" : "SORT_KEY_GENERATOR",
"inputStage" : {
"stage" : "FETCH",
"inputStage" : {
"stage" : "IXSCAN",
"keyPattern" : {
"update" : 1
},
"indexName" : "_update_",
"isMultiKey" : false,
"multiKeyPaths" : {
"update" : []
},
"isUnique" : false,
"isSparse" : false,
"isPartial" : false,
"indexVersion" : 2,
"direction" : "forward",
"indexBounds" : {
"update" : [
"(\"\", {})"
]
}
}
}
}
}
]
...
...
"winningPlan" : {
"stage" : "SORT",
"sortPattern" : {
"sort" : -1.0
},
"inputStage" : {
"stage" : "SORT_KEY_GENERATOR",
"inputStage" : {
"stage" : "FETCH",
"inputStage" : {
"stage" : "IXSCAN",
"keyPattern" : {
"update" : 1
},
"indexName" : "_update_",
"isMultiKey" : false,
"multiKeyPaths" : {
"update" : []
},
"isUnique" : false,
"isSparse" : false,
"isPartial" : false,
"indexVersion" : 2,
"direction" : "forward",
"indexBounds" : {
"update" : [
"[\"\", \"\"]"
]
}
}
}
}
},
"rejectedPlans" : [
{
"stage" : "FETCH",
"filter" : {
"update" : {
"$eq" : ""
}
},
"inputStage" : {
"stage" : "IXSCAN",
"keyPattern" : {
"sort" : -1
},
"indexName" : "_sort_",
"isMultiKey" : false,
"multiKeyPaths" : {
"sort" : []
},
"isUnique" : false,
"isSparse" : false,
"isPartial" : false,
"indexVersion" : 2,
"direction" : "forward",
"indexBounds" : {
"sort" : [
"[MaxKey, MinKey]"
]
}
}
}
]
...
this.asyncFn(v, this.asyncRes.bind(this));
data(v1, v2) {
const self = this;
...
this.asyncFn(v1, v2, function(res) {
self.asyncRes(v1, v2, res);
});
...
};
Что есть AMI - если не сложно? Если это проще, то лучше так =)