Docker 验证证据
🚀 运行/交互
insertMany → find().sort() → show collections → explaindocker-session.out.txt
$ mongosh --quiet --eval 'db.runCommand({ping:1})'
{ ok: 1 }
$ mongosh --quiet --eval fixed-session.js
[
{
_id: 3,
name: 'Carol',
score: 40
},
{
_id: 1,
name: 'Alice',
score: 30
}
]
[
'items'
]
{
isCached: false,
stage: 'COLLSCAN',
filter: {
score: {
'$gte': 30
}
},
direction: 'forward'
}