mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-02 10:36:28 +00:00
Compare commits
2 Commits
pmm-3.3.0
...
PMM-8125_m
Author | SHA1 | Date | |
---|---|---|---|
![]() |
692d991eef | ||
![]() |
1921451dfa |
@@ -7,6 +7,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@@ -65,8 +66,8 @@ func TestSingleFingerprint(t *testing.T) {
|
||||
func TestFingerprints(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
dir := filepath.Join(vars.RootPath, "/src/go/tests/doc/profiles")
|
||||
dirExpect := filepath.Join(vars.RootPath, "/src/go/tests/expect/fingerprints/")
|
||||
dir := filepath.Join(vars.RootPath, "src/go/tests/doc/out/")
|
||||
dirExpect := filepath.Join(vars.RootPath, "src/go/tests/expect/fingerprints/")
|
||||
files, err := ioutil.ReadDir(dir)
|
||||
if err != nil {
|
||||
t.Fatalf("cannot list samples: %s", err)
|
||||
@@ -85,7 +86,9 @@ func TestFingerprints(t *testing.T) {
|
||||
t.Errorf("cannot create fingerprint: %s", err)
|
||||
}
|
||||
|
||||
fExpect := filepath.Join(dirExpect, file.Name())
|
||||
re := regexp.MustCompile(`(_(mongo|psmdb).*)$`)
|
||||
fname := re.ReplaceAllString(file.Name(), "")
|
||||
fExpect := filepath.Join(dirExpect, fname)
|
||||
fExpect = strings.TrimSuffix(fExpect, ".bson")
|
||||
|
||||
if tutil.ShouldUpdateSamples() {
|
||||
@@ -102,7 +105,7 @@ func TestFingerprints(t *testing.T) {
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(got, expect) {
|
||||
t.Errorf("fp.Fingerprint(doc) = %s, want %s", got, expect)
|
||||
t.Errorf("fp.Fingerprint(doc) = %+v, want %+v", got, expect)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
6
src/go/tests/doc/docker-compose.yml
Normal file → Executable file
6
src/go/tests/doc/docker-compose.yml
Normal file → Executable file
@@ -2,6 +2,12 @@ version: '3'
|
||||
services:
|
||||
mongo:
|
||||
image: ${MONGO_IMAGE:-mongo}
|
||||
ports:
|
||||
- 127.0.0.1:27017:27017
|
||||
environment:
|
||||
- MONGO_INITDB_ROOT_USERNAME=root
|
||||
- MONGO_INITDB_ROOT_PASSWORD=root-password
|
||||
volumes:
|
||||
- ./script:/script
|
||||
- ./out:/out
|
||||
- ./home/mongodb:/home/mongodb
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"aggregate":"coll","pipeline":[{"$match":{"a":{"$gte":2}}}],"cursor":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"aggregate":"coll","pipeline":[{"$match":{"a":{"$gte":2}}}],"cursor":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"aggregate":"coll","pipeline":[{"$match":{"a":{"$gte":2}}}],"cursor":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"aggregate":"coll","pipeline":[{"$match":{"a":{"$gte":2}}}],"cursor":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"aggregate":"coll","pipeline":[{"$match":{"a":{"$gte":2}}}],"cursor":{},"$db":"test"}}
|
66
src/go/tests/doc/out/aggregate_mongo_3.6
Normal file
66
src/go/tests/doc/out/aggregate_mongo_3.6
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"aggregate": "test_db.coll",
|
||||
"pipeline": [
|
||||
{
|
||||
"$match": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"cursor": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "NdVmYCGDTZ23vw77F9e/Nw==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"docsExamined": 8,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "4"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nreturned": 8,
|
||||
"responseLength": 379,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
76
src/go/tests/doc/out/aggregate_mongo_4.0
Normal file
76
src/go/tests/doc/out/aggregate_mongo_4.0
Normal file
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"aggregate": "test_db.coll",
|
||||
"pipeline": [
|
||||
{
|
||||
"$match": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"cursor": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "3xuPBJ9pREyIssK7lXFHZw==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"docsExamined": 8,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 8,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "4"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "170"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 395,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
93
src/go/tests/doc/out/aggregate_mongo_4.2
Normal file
93
src/go/tests/doc/out/aggregate_mongo_4.2
Normal file
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"aggregate": "test_db.coll",
|
||||
"pipeline": [
|
||||
{
|
||||
"$match": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"cursor": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "fw0z6rEQR8ms0reMW71sxg==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"docsExamined": 8,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 8,
|
||||
"queryHash": "0D966491",
|
||||
"planCacheKey": "BCC9CBED",
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "170"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 395,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
93
src/go/tests/doc/out/aggregate_mongo_4.4
Normal file
93
src/go/tests/doc/out/aggregate_mongo_4.4
Normal file
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"aggregate": "test_db.coll",
|
||||
"pipeline": [
|
||||
{
|
||||
"$match": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"cursor": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "HEWMc+tzR0Gj6VqFQOb9Jw==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"docsExamined": 8,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 8,
|
||||
"queryHash": "0D966491",
|
||||
"planCacheKey": "BCC9CBED",
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "171"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 395,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"count":"coll","query":{},"fields":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"count":"coll","query":{},"fields":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{},"fields":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{},"fields":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{},"fields":{},"$db":"test"}}
|
71
src/go/tests/doc/out/count_mongo_3.6
Normal file
71
src/go/tests/doc/out/count_mongo_3.6
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"count": "test_db.coll",
|
||||
"query": {},
|
||||
"fields": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "ZPO/7w6aSFytwW3YX7vAdg==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 29,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "COUNT",
|
||||
"execStats": {
|
||||
"stage": "COUNT",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"nCounted": 10,
|
||||
"nSkipped": 0
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
71
src/go/tests/doc/out/count_mongo_4.0
Normal file
71
src/go/tests/doc/out/count_mongo_4.0
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"count": "test_db.coll",
|
||||
"query": {},
|
||||
"fields": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "kVak4jKLTmGTSLaZ/wcTjg==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "3"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 45,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "COUNT",
|
||||
"execStats": {
|
||||
"stage": "COUNT",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"nCounted": 10,
|
||||
"nSkipped": 0
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
84
src/go/tests/doc/out/count_mongo_4.2
Normal file
84
src/go/tests/doc/out/count_mongo_4.2
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"count": "test_db.coll",
|
||||
"query": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "HJJIKdRRQLqMJrPDvJRX6A==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"responseLength": 45,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "RECORD_STORE_FAST_COUNT",
|
||||
"execStats": {
|
||||
"stage": "RECORD_STORE_FAST_COUNT",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"nCounted": 10,
|
||||
"nSkipped": 0
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
84
src/go/tests/doc/out/count_mongo_4.4
Normal file
84
src/go/tests/doc/out/count_mongo_4.4
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"count": "test_db.coll",
|
||||
"query": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "We3OR+TIScuk7NaneZTA+g==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"responseLength": 45,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "RECORD_STORE_FAST_COUNT",
|
||||
"execStats": {
|
||||
"stage": "RECORD_STORE_FAST_COUNT",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"nCounted": 10,
|
||||
"nSkipped": 0
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"count":"coll","query":{"a":{"$gt":5}},"fields":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"count":"coll","query":{"a":{"$gt":5}},"fields":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{"a":{"$gt":5}},"fields":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{"a":{"$gt":5}},"fields":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{"a":{"$gt":5}},"fields":{},"$db":"test"}}
|
95
src/go/tests/doc/out/count_with_query_mongo_3.6
Normal file
95
src/go/tests/doc/out/count_with_query_mongo_3.6
Normal file
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"count": "test_db.coll",
|
||||
"query": {
|
||||
"a": {
|
||||
"$gt": 5
|
||||
}
|
||||
},
|
||||
"fields": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "1nOQhU+eSPyA5aQepKm8sQ==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 10,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 29,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "COLLSCAN",
|
||||
"execStats": {
|
||||
"stage": "COUNT",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 12,
|
||||
"advanced": 0,
|
||||
"needTime": 11,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"nCounted": 4,
|
||||
"nSkipped": 0,
|
||||
"inputStage": {
|
||||
"stage": "COLLSCAN",
|
||||
"filter": {
|
||||
"a": {
|
||||
"$gt": 5
|
||||
}
|
||||
},
|
||||
"nReturned": 4,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 12,
|
||||
"advanced": 4,
|
||||
"needTime": 7,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"direction": "forward",
|
||||
"docsExamined": 10
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
96
src/go/tests/doc/out/count_with_query_mongo_4.0
Normal file
96
src/go/tests/doc/out/count_with_query_mongo_4.0
Normal file
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"count": "test_db.coll",
|
||||
"query": {
|
||||
"a": {
|
||||
"$gt": 5
|
||||
}
|
||||
},
|
||||
"fields": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "2LDhaOM5RiqWd7EN5kpRfw==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 10,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "3"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"storage": {},
|
||||
"responseLength": 45,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "COLLSCAN",
|
||||
"execStats": {
|
||||
"stage": "COUNT",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 12,
|
||||
"advanced": 0,
|
||||
"needTime": 11,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"nCounted": 4,
|
||||
"nSkipped": 0,
|
||||
"inputStage": {
|
||||
"stage": "COLLSCAN",
|
||||
"filter": {
|
||||
"a": {
|
||||
"$gt": 5
|
||||
}
|
||||
},
|
||||
"nReturned": 4,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 12,
|
||||
"advanced": 4,
|
||||
"needTime": 7,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"direction": "forward",
|
||||
"docsExamined": 10
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
110
src/go/tests/doc/out/count_with_query_mongo_4.2
Normal file
110
src/go/tests/doc/out/count_with_query_mongo_4.2
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"count": "test_db.coll",
|
||||
"query": {
|
||||
"a": {
|
||||
"$gt": 5
|
||||
}
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "71enoTyxTcKlQbr43k81Kg==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 10,
|
||||
"numYield": 0,
|
||||
"queryHash": "7D364BCC",
|
||||
"planCacheKey": "7D364BCC",
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"storage": {},
|
||||
"responseLength": 45,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "COLLSCAN",
|
||||
"execStats": {
|
||||
"stage": "COUNT",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 12,
|
||||
"advanced": 0,
|
||||
"needTime": 11,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"nCounted": 4,
|
||||
"nSkipped": 0,
|
||||
"inputStage": {
|
||||
"stage": "COLLSCAN",
|
||||
"filter": {
|
||||
"a": {
|
||||
"$gt": 5
|
||||
}
|
||||
},
|
||||
"nReturned": 4,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 12,
|
||||
"advanced": 4,
|
||||
"needTime": 7,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"direction": "forward",
|
||||
"docsExamined": 10
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
110
src/go/tests/doc/out/count_with_query_mongo_4.4
Normal file
110
src/go/tests/doc/out/count_with_query_mongo_4.4
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"count": "test_db.coll",
|
||||
"query": {
|
||||
"a": {
|
||||
"$gt": 5
|
||||
}
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "BRKnQ5KtSuW8t9026WelxQ==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 10,
|
||||
"numYield": 0,
|
||||
"queryHash": "7D364BCC",
|
||||
"planCacheKey": "7D364BCC",
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"storage": {},
|
||||
"responseLength": 45,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "COLLSCAN",
|
||||
"execStats": {
|
||||
"stage": "COUNT",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 12,
|
||||
"advanced": 0,
|
||||
"needTime": 11,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"nCounted": 4,
|
||||
"nSkipped": 0,
|
||||
"inputStage": {
|
||||
"stage": "COLLSCAN",
|
||||
"filter": {
|
||||
"a": {
|
||||
"$gt": 5
|
||||
}
|
||||
},
|
||||
"nReturned": 4,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 12,
|
||||
"advanced": 4,
|
||||
"needTime": 7,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"direction": "forward",
|
||||
"docsExamined": 10
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"remove","command":{"q":{"a":{"$gte":2},"b":{"$gte":2}},"limit":1}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"remove","command":{"q":{"a":{"$gte":2},"b":{"$gte":2}},"limit":0}}
|
129
src/go/tests/doc/out/delete_all_mongo_3.6
Normal file
129
src/go/tests/doc/out/delete_all_mongo_3.6
Normal file
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"op": "remove",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"q": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
},
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"limit": 0
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"docsExamined": 8,
|
||||
"ndeleted": 8,
|
||||
"keysDeleted": 16,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
},
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"W": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"execStats": {
|
||||
"stage": "DELETE",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 0,
|
||||
"needTime": 8,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"nWouldDelete": 8,
|
||||
"nInvalidateSkips": 0,
|
||||
"inputStage": {
|
||||
"stage": "FETCH",
|
||||
"filter": {
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"nReturned": 8,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 8,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 8,
|
||||
"restoreState": 8,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"docsExamined": 8,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 8,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 8,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 8,
|
||||
"restoreState": 8,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"keyPattern": {
|
||||
"a": 1
|
||||
},
|
||||
"indexName": "a_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"a": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"a": [
|
||||
"[2.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0,
|
||||
"seenInvalidated": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
139
src/go/tests/doc/out/delete_all_mongo_4.0
Normal file
139
src/go/tests/doc/out/delete_all_mongo_4.0
Normal file
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"op": "remove",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"q": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
},
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"limit": 0
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"docsExamined": 8,
|
||||
"ndeleted": 8,
|
||||
"keysDeleted": 16,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "3"
|
||||
},
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"W": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "170"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"execStats": {
|
||||
"stage": "DELETE",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 0,
|
||||
"needTime": 8,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"nWouldDelete": 8,
|
||||
"nInvalidateSkips": 0,
|
||||
"inputStage": {
|
||||
"stage": "FETCH",
|
||||
"filter": {
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"nReturned": 8,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 8,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 8,
|
||||
"restoreState": 8,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"docsExamined": 8,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 8,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 8,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 8,
|
||||
"restoreState": 8,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"keyPattern": {
|
||||
"a": 1
|
||||
},
|
||||
"indexName": "a_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"a": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"a": [
|
||||
"[2.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0,
|
||||
"seenInvalidated": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
162
src/go/tests/doc/out/delete_all_mongo_4.2
Normal file
162
src/go/tests/doc/out/delete_all_mongo_4.2
Normal file
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"op": "remove",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"q": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
},
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"limit": 0
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"docsExamined": 8,
|
||||
"ndeleted": 8,
|
||||
"keysDeleted": 16,
|
||||
"numYield": 0,
|
||||
"queryHash": "CB67518C",
|
||||
"planCacheKey": "1A9D8F44",
|
||||
"locks": {
|
||||
"ParallelBatchWriterMode": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
},
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"W": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "17"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {
|
||||
"acquireCount": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "170"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"execStats": {
|
||||
"stage": "DELETE",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 0,
|
||||
"needTime": 8,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"nWouldDelete": 8,
|
||||
"inputStage": {
|
||||
"stage": "FETCH",
|
||||
"filter": {
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"nReturned": 8,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 8,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 8,
|
||||
"restoreState": 8,
|
||||
"isEOF": 1,
|
||||
"docsExamined": 8,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 8,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 8,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 8,
|
||||
"restoreState": 8,
|
||||
"isEOF": 1,
|
||||
"keyPattern": {
|
||||
"a": 1
|
||||
},
|
||||
"indexName": "a_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"a": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"a": [
|
||||
"[2.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
162
src/go/tests/doc/out/delete_all_mongo_4.4
Normal file
162
src/go/tests/doc/out/delete_all_mongo_4.4
Normal file
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"op": "remove",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"q": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
},
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"limit": 0
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"docsExamined": 8,
|
||||
"ndeleted": 8,
|
||||
"keysDeleted": 16,
|
||||
"numYield": 0,
|
||||
"queryHash": "CB67518C",
|
||||
"planCacheKey": "1A9D8F44",
|
||||
"locks": {
|
||||
"ParallelBatchWriterMode": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
},
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"W": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {
|
||||
"acquireCount": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "171"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"execStats": {
|
||||
"stage": "DELETE",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 0,
|
||||
"needTime": 8,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"nWouldDelete": 8,
|
||||
"inputStage": {
|
||||
"stage": "FETCH",
|
||||
"filter": {
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"nReturned": 8,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 8,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 8,
|
||||
"restoreState": 8,
|
||||
"isEOF": 1,
|
||||
"docsExamined": 8,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 8,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 9,
|
||||
"advanced": 8,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 8,
|
||||
"restoreState": 8,
|
||||
"isEOF": 1,
|
||||
"keyPattern": {
|
||||
"a": 1
|
||||
},
|
||||
"indexName": "a_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"a": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"a": [
|
||||
"[2.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 8,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
129
src/go/tests/doc/out/delete_mongo_3.6
Normal file
129
src/go/tests/doc/out/delete_mongo_3.6
Normal file
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"op": "remove",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"q": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
},
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"limit": 1
|
||||
},
|
||||
"keysExamined": 1,
|
||||
"docsExamined": 1,
|
||||
"ndeleted": 1,
|
||||
"keysDeleted": 2,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
},
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"W": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"execStats": {
|
||||
"stage": "DELETE",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 2,
|
||||
"advanced": 0,
|
||||
"needTime": 1,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"nWouldDelete": 1,
|
||||
"nInvalidateSkips": 0,
|
||||
"inputStage": {
|
||||
"stage": "FETCH",
|
||||
"filter": {
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"nReturned": 1,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 1,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 1,
|
||||
"restoreState": 1,
|
||||
"isEOF": 0,
|
||||
"invalidates": 0,
|
||||
"docsExamined": 1,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 1,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 1,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 1,
|
||||
"restoreState": 1,
|
||||
"isEOF": 0,
|
||||
"invalidates": 0,
|
||||
"keyPattern": {
|
||||
"a": 1
|
||||
},
|
||||
"indexName": "a_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"a": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"a": [
|
||||
"[2.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 1,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0,
|
||||
"seenInvalidated": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
139
src/go/tests/doc/out/delete_mongo_4.0
Normal file
139
src/go/tests/doc/out/delete_mongo_4.0
Normal file
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"op": "remove",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"q": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
},
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"limit": 1
|
||||
},
|
||||
"keysExamined": 1,
|
||||
"docsExamined": 1,
|
||||
"ndeleted": 1,
|
||||
"keysDeleted": 2,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "3"
|
||||
},
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"W": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "170"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"execStats": {
|
||||
"stage": "DELETE",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 2,
|
||||
"advanced": 0,
|
||||
"needTime": 1,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"nWouldDelete": 1,
|
||||
"nInvalidateSkips": 0,
|
||||
"inputStage": {
|
||||
"stage": "FETCH",
|
||||
"filter": {
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"nReturned": 1,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 1,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 1,
|
||||
"restoreState": 1,
|
||||
"isEOF": 0,
|
||||
"invalidates": 0,
|
||||
"docsExamined": 1,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 1,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 1,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 1,
|
||||
"restoreState": 1,
|
||||
"isEOF": 0,
|
||||
"invalidates": 0,
|
||||
"keyPattern": {
|
||||
"a": 1
|
||||
},
|
||||
"indexName": "a_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"a": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"a": [
|
||||
"[2.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 1,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0,
|
||||
"seenInvalidated": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
165
src/go/tests/doc/out/delete_mongo_4.2
Normal file
165
src/go/tests/doc/out/delete_mongo_4.2
Normal file
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"op": "remove",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"q": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
},
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"limit": 1
|
||||
},
|
||||
"keysExamined": 1,
|
||||
"docsExamined": 1,
|
||||
"ndeleted": 1,
|
||||
"keysDeleted": 2,
|
||||
"numYield": 0,
|
||||
"queryHash": "CB67518C",
|
||||
"planCacheKey": "1A9D8F44",
|
||||
"locks": {
|
||||
"ParallelBatchWriterMode": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
},
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"W": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "3"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {
|
||||
"acquireCount": {
|
||||
"$numberLong": "1"
|
||||
},
|
||||
"timeAcquiringMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "170"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"execStats": {
|
||||
"stage": "DELETE",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 2,
|
||||
"advanced": 0,
|
||||
"needTime": 1,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"nWouldDelete": 1,
|
||||
"inputStage": {
|
||||
"stage": "FETCH",
|
||||
"filter": {
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"nReturned": 1,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 1,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 1,
|
||||
"restoreState": 1,
|
||||
"isEOF": 0,
|
||||
"docsExamined": 1,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 1,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 1,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 1,
|
||||
"restoreState": 1,
|
||||
"isEOF": 0,
|
||||
"keyPattern": {
|
||||
"a": 1
|
||||
},
|
||||
"indexName": "a_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"a": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"a": [
|
||||
"[2.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 1,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
165
src/go/tests/doc/out/delete_mongo_4.4
Normal file
165
src/go/tests/doc/out/delete_mongo_4.4
Normal file
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"op": "remove",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"q": {
|
||||
"a": {
|
||||
"$gte": 2
|
||||
},
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"limit": 1
|
||||
},
|
||||
"keysExamined": 1,
|
||||
"docsExamined": 1,
|
||||
"ndeleted": 1,
|
||||
"keysDeleted": 2,
|
||||
"numYield": 0,
|
||||
"queryHash": "CB67518C",
|
||||
"planCacheKey": "1A9D8F44",
|
||||
"locks": {
|
||||
"ParallelBatchWriterMode": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
},
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"W": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {
|
||||
"acquireCount": {
|
||||
"$numberLong": "1"
|
||||
},
|
||||
"timeAcquiringMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "171"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { a: 1 }",
|
||||
"execStats": {
|
||||
"stage": "DELETE",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 2,
|
||||
"advanced": 0,
|
||||
"needTime": 1,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"nWouldDelete": 1,
|
||||
"inputStage": {
|
||||
"stage": "FETCH",
|
||||
"filter": {
|
||||
"b": {
|
||||
"$gte": 2
|
||||
}
|
||||
},
|
||||
"nReturned": 1,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 1,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 1,
|
||||
"restoreState": 1,
|
||||
"isEOF": 0,
|
||||
"docsExamined": 1,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 1,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 1,
|
||||
"advanced": 1,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 1,
|
||||
"restoreState": 1,
|
||||
"isEOF": 0,
|
||||
"keyPattern": {
|
||||
"a": 1
|
||||
},
|
||||
"indexName": "a_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"a": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"a": [
|
||||
"[2.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 1,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"distinct":"coll","key":"a","query":{"b":{"$gte":5}}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"distinct":"coll","key":"a","query":{"b":{"$gte":5}}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"distinct":"coll","key":"a","query":{"b":{"$gte":5}}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"distinct":"coll","key":"a","query":{"b":{"$gte":5}}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"distinct":"coll","key":"a","query":{"b":{"$gte":5}},"$db":"test"}}
|
111
src/go/tests/doc/out/distinct_mongo_3.6
Normal file
111
src/go/tests/doc/out/distinct_mongo_3.6
Normal file
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"distinct": "test_db.coll",
|
||||
"key": "a",
|
||||
"query": {
|
||||
"b": {
|
||||
"$gte": 5
|
||||
}
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "3VuocJZcQ9CWJYWXrV8mmA==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 5,
|
||||
"docsExamined": 5,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 90,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { b: 1 }",
|
||||
"execStats": {
|
||||
"stage": "FETCH",
|
||||
"nReturned": 5,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 6,
|
||||
"advanced": 5,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"docsExamined": 5,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 5,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 6,
|
||||
"advanced": 5,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"keyPattern": {
|
||||
"b": 1
|
||||
},
|
||||
"indexName": "b_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"b": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"b": [
|
||||
"[5.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 5,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0,
|
||||
"seenInvalidated": 0
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
121
src/go/tests/doc/out/distinct_mongo_4.0
Normal file
121
src/go/tests/doc/out/distinct_mongo_4.0
Normal file
@@ -0,0 +1,121 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"distinct": "test_db.coll",
|
||||
"key": "a",
|
||||
"query": {
|
||||
"b": {
|
||||
"$gte": 5
|
||||
}
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "Ij6ywjJlS7GvjQGmJDuSew==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 5,
|
||||
"docsExamined": 5,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "3"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "170"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 106,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { b: 1 }",
|
||||
"execStats": {
|
||||
"stage": "FETCH",
|
||||
"nReturned": 5,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 6,
|
||||
"advanced": 5,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"docsExamined": 5,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 5,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 6,
|
||||
"advanced": 5,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"keyPattern": {
|
||||
"b": 1
|
||||
},
|
||||
"indexName": "b_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"b": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"b": [
|
||||
"[5.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 5,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0,
|
||||
"seenInvalidated": 0
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
135
src/go/tests/doc/out/distinct_mongo_4.2
Normal file
135
src/go/tests/doc/out/distinct_mongo_4.2
Normal file
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"distinct": "test_db.coll",
|
||||
"key": "a",
|
||||
"query": {
|
||||
"b": {
|
||||
"$gte": 5
|
||||
}
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "w0+//lTwRfusp4NGWN2KTw==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 5,
|
||||
"docsExamined": 5,
|
||||
"numYield": 0,
|
||||
"queryHash": "0E87FD37",
|
||||
"planCacheKey": "35E4240C",
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "170"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 106,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { b: 1 }",
|
||||
"execStats": {
|
||||
"stage": "FETCH",
|
||||
"nReturned": 5,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 6,
|
||||
"advanced": 5,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"docsExamined": 5,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 5,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 6,
|
||||
"advanced": 5,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"keyPattern": {
|
||||
"b": 1
|
||||
},
|
||||
"indexName": "b_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"b": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"b": [
|
||||
"[5.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 5,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
135
src/go/tests/doc/out/distinct_mongo_4.4
Normal file
135
src/go/tests/doc/out/distinct_mongo_4.4
Normal file
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"distinct": "test_db.coll",
|
||||
"key": "a",
|
||||
"query": {
|
||||
"b": {
|
||||
"$gte": 5
|
||||
}
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "1nZKpzSHT3y9/RwVfbXRkw==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 5,
|
||||
"docsExamined": 5,
|
||||
"numYield": 0,
|
||||
"queryHash": "0E87FD37",
|
||||
"planCacheKey": "35E4240C",
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "171"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 106,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { b: 1 }",
|
||||
"execStats": {
|
||||
"stage": "FETCH",
|
||||
"nReturned": 5,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 6,
|
||||
"advanced": 5,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"docsExamined": 5,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 5,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 6,
|
||||
"advanced": 5,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"keyPattern": {
|
||||
"b": 1
|
||||
},
|
||||
"indexName": "b_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"b": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"b": [
|
||||
"[5.0, inf.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 5,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"$eval":"1"}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"$eval":"1"}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test","op":"command","command":{"$eval":"1"}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test","op":"command","command":{"$eval":"1"}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test","op":"command","command":{"$eval":"1","$db":"test"}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"query":{},"$explain":true}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.$cmd","op":"command","command":{"explain":{"find":"coll","filter":{},"options":{}},"verbosity":"queryPlanner"}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"explain":{"find":"coll","filter":{}},"verbosity":"queryPlanner"}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"explain":{"find":"coll","filter":{}},"verbosity":"queryPlanner"}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"command","command":{"explain":{"find":"coll","filter":{}},"verbosity":"queryPlanner","$db":"test"}}
|
55
src/go/tests/doc/out/explain_mongo_3.6
Normal file
55
src/go/tests/doc/out/explain_mongo_3.6
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"explain": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {}
|
||||
},
|
||||
"verbosity": "queryPlanner",
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "gH/ateNETYK9e8gaZluedg==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 310,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
55
src/go/tests/doc/out/explain_mongo_4.0
Normal file
55
src/go/tests/doc/out/explain_mongo_4.0
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"explain": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {}
|
||||
},
|
||||
"verbosity": "queryPlanner",
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "Toz3DlwUSBy1VSqsrOdNcQ==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "3"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 326,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
70
src/go/tests/doc/out/explain_mongo_4.2
Normal file
70
src/go/tests/doc/out/explain_mongo_4.2
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"explain": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {}
|
||||
},
|
||||
"verbosity": "queryPlanner",
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "35tbpZ02Q0Cleq2XNuE+Lw==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"responseLength": 326,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
70
src/go/tests/doc/out/explain_mongo_4.4
Normal file
70
src/go/tests/doc/out/explain_mongo_4.4
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"op": "command",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"explain": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {}
|
||||
},
|
||||
"verbosity": "queryPlanner",
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "nWJ0LndlSRO6mHerb3GZwg==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"responseLength": 325,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"k":1}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"k":1}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"find":"coll","filter":{"k":1}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"find":"coll","filter":{"k":1}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","command":{"find":"coll","filter":{"k":1},"$db":"test"}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"query":{"$and":[{"k":{"$gt":1}},{"k":{"$lt":2}},{"$or":[{"c":{"$in":["/^0/","/^2/","/^4/","/^6/"]}},{"pad":{"$in":["/9$/","/7$/","/5$/","/3$/"]}}]}]},"orderby":{"k":-1}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"query":{"$and":[{"k":{"$gt":1}},{"k":{"$lt":2}},{"$or":[{"c":{"$in":["/^0/","/^2/","/^4/","/^6/"]}},{"pad":{"$in":["/9$/","/7$/","/5$/","/3$/"]}}]}]},"orderby":{"k":-1}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"find":"coll","filter":{"$and":[{"k":{"$gt":1}},{"k":{"$lt":2}},{"$or":[{"c":{"$in":["/^0/","/^2/","/^4/","/^6/"]}},{"pad":{"$in":["/9$/","/7$/","/5$/","/3$/"]}}]}]},"limit":100,"singleBatch":false,"sort":{"k":-1}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"find":"coll","filter":{"$and":[{"k":{"$gt":1}},{"k":{"$lt":2}},{"$or":[{"c":{"$in":["/^0/","/^2/","/^4/","/^6/"]}},{"pad":{"$in":["/9$/","/7$/","/5$/","/3$/"]}}]}]},"limit":100,"singleBatch":false,"sort":{"k":-1}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","command":{"find":"coll","filter":{"$and":[{"k":{"$gt":1}},{"k":{"$lt":2}},{"$or":[{"c":{"$in":["/^0/","/^2/","/^4/","/^6/"]}},{"pad":{"$in":["/9$/","/7$/","/5$/","/3$/"]}}]}]},"limit":100,"singleBatch":false,"sort":{"k":-1},"$db":"test"}}
|
137
src/go/tests/doc/out/find_andrii_mongo_3.6
Normal file
137
src/go/tests/doc/out/find_andrii_mongo_3.6
Normal file
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {
|
||||
"$and": [
|
||||
{
|
||||
"k": {
|
||||
"$gt": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"k": {
|
||||
"$lt": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"$or": [
|
||||
{
|
||||
"c": {
|
||||
"$in": [
|
||||
{
|
||||
"$regex": "^0",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^2",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^4",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^6",
|
||||
"$options": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"pad": {
|
||||
"$in": [
|
||||
{
|
||||
"$regex": "9$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "7$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "5$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "3$",
|
||||
"$options": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"$comment": "find_andrii"
|
||||
},
|
||||
"limit": 100,
|
||||
"singleBatch": false,
|
||||
"sort": {
|
||||
"k": -1
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "7vc65wrCSyaMT8mfko6xew==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nreturned": 0,
|
||||
"responseLength": 91,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "EOF",
|
||||
"execStats": {
|
||||
"stage": "EOF",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 0,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
137
src/go/tests/doc/out/find_andrii_mongo_4.0
Normal file
137
src/go/tests/doc/out/find_andrii_mongo_4.0
Normal file
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {
|
||||
"$and": [
|
||||
{
|
||||
"k": {
|
||||
"$gt": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"k": {
|
||||
"$lt": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"$or": [
|
||||
{
|
||||
"c": {
|
||||
"$in": [
|
||||
{
|
||||
"$regex": "^0",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^2",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^4",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^6",
|
||||
"$options": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"pad": {
|
||||
"$in": [
|
||||
{
|
||||
"$regex": "9$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "7$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "5$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "3$",
|
||||
"$options": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"$comment": "find_andrii"
|
||||
},
|
||||
"limit": 100,
|
||||
"singleBatch": false,
|
||||
"sort": {
|
||||
"k": -1
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "KnAWQNs/R6GhKWUWwPs5xQ==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "3"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 107,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "EOF",
|
||||
"execStats": {
|
||||
"stage": "EOF",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 0,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
151
src/go/tests/doc/out/find_andrii_mongo_4.2
Normal file
151
src/go/tests/doc/out/find_andrii_mongo_4.2
Normal file
@@ -0,0 +1,151 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {
|
||||
"$and": [
|
||||
{
|
||||
"k": {
|
||||
"$gt": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"k": {
|
||||
"$lt": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"$or": [
|
||||
{
|
||||
"c": {
|
||||
"$in": [
|
||||
{
|
||||
"$regex": "^0",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^2",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^4",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^6",
|
||||
"$options": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"pad": {
|
||||
"$in": [
|
||||
{
|
||||
"$regex": "9$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "7$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "5$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "3$",
|
||||
"$options": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"$comment": "find_andrii"
|
||||
},
|
||||
"limit": 100,
|
||||
"singleBatch": false,
|
||||
"sort": {
|
||||
"k": -1
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "MBYxULsBRpmdX1z/kIQ4rA==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 0,
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"responseLength": 107,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "EOF",
|
||||
"execStats": {
|
||||
"stage": "EOF",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 0,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
151
src/go/tests/doc/out/find_andrii_mongo_4.4
Normal file
151
src/go/tests/doc/out/find_andrii_mongo_4.4
Normal file
@@ -0,0 +1,151 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {
|
||||
"$and": [
|
||||
{
|
||||
"k": {
|
||||
"$gt": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"k": {
|
||||
"$lt": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"$or": [
|
||||
{
|
||||
"c": {
|
||||
"$in": [
|
||||
{
|
||||
"$regex": "^0",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^2",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^4",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "^6",
|
||||
"$options": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"pad": {
|
||||
"$in": [
|
||||
{
|
||||
"$regex": "9$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "7$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "5$",
|
||||
"$options": ""
|
||||
},
|
||||
{
|
||||
"$regex": "3$",
|
||||
"$options": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"$comment": "find_andrii"
|
||||
},
|
||||
"limit": 100,
|
||||
"singleBatch": false,
|
||||
"sort": {
|
||||
"k": -1
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "6T5YG56jQ3a2Ishifbt7Pw==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 0,
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"responseLength": 107,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "EOF",
|
||||
"execStats": {
|
||||
"stage": "EOF",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 0,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query"}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query"}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"find":"coll","filter":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"find":"coll","filter":{}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","command":{"find":"coll","filter":{},"$db":"test"}}
|
70
src/go/tests/doc/out/find_empty_mongo_3.6
Normal file
70
src/go/tests/doc/out/find_empty_mongo_3.6
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "dsIUiir2R1GsIO/3lBRDsA==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nreturned": 0,
|
||||
"responseLength": 91,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "EOF",
|
||||
"execStats": {
|
||||
"stage": "EOF",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 0,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
70
src/go/tests/doc/out/find_empty_mongo_4.0
Normal file
70
src/go/tests/doc/out/find_empty_mongo_4.0
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "K6pQo1/aTLWnkkeB9iT4qA==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "3"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 107,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "EOF",
|
||||
"execStats": {
|
||||
"stage": "EOF",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 0,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
84
src/go/tests/doc/out/find_empty_mongo_4.2
Normal file
84
src/go/tests/doc/out/find_empty_mongo_4.2
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "yWyTWvWbSyqpIzFv3k8xUg==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 0,
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"responseLength": 107,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "EOF",
|
||||
"execStats": {
|
||||
"stage": "EOF",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 0,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
84
src/go/tests/doc/out/find_empty_mongo_4.4
Normal file
84
src/go/tests/doc/out/find_empty_mongo_4.4
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "KCYfjIgOQiOkLmXvhe6zSA==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 0,
|
||||
"docsExamined": 0,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 0,
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"responseLength": 107,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "EOF",
|
||||
"execStats": {
|
||||
"stage": "EOF",
|
||||
"nReturned": 0,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 0,
|
||||
"advanced": 0,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
110
src/go/tests/doc/out/find_mongo_3.6
Normal file
110
src/go/tests/doc/out/find_mongo_3.6
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {
|
||||
"k": 1
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "RCOEPKU4RiyoYSsnPx9Bnw==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 2,
|
||||
"docsExamined": 2,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nreturned": 2,
|
||||
"responseLength": 163,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { k: 1 }",
|
||||
"execStats": {
|
||||
"stage": "FETCH",
|
||||
"nReturned": 2,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 3,
|
||||
"advanced": 2,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"docsExamined": 2,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 2,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 3,
|
||||
"advanced": 2,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"keyPattern": {
|
||||
"k": 1
|
||||
},
|
||||
"indexName": "k_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"k": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"k": [
|
||||
"[1.0, 1.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 2,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0,
|
||||
"seenInvalidated": 0
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
120
src/go/tests/doc/out/find_mongo_4.0
Normal file
120
src/go/tests/doc/out/find_mongo_4.0
Normal file
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {
|
||||
"k": 1
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "rpFEmxqLQrS4CjQK9yedSg==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 2,
|
||||
"docsExamined": 2,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 2,
|
||||
"locks": {
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "3"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "157"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 179,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { k: 1 }",
|
||||
"execStats": {
|
||||
"stage": "FETCH",
|
||||
"nReturned": 2,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 3,
|
||||
"advanced": 2,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"docsExamined": 2,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 2,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 3,
|
||||
"advanced": 2,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"invalidates": 0,
|
||||
"keyPattern": {
|
||||
"k": 1
|
||||
},
|
||||
"indexName": "k_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"k": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"k": [
|
||||
"[1.0, 1.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 2,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0,
|
||||
"seenInvalidated": 0
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
134
src/go/tests/doc/out/find_mongo_4.2
Normal file
134
src/go/tests/doc/out/find_mongo_4.2
Normal file
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {
|
||||
"k": 1
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "v3cjxpP9QUKvqKHx7lT4Vw==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 2,
|
||||
"docsExamined": 2,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 2,
|
||||
"queryHash": "5C3D15E7",
|
||||
"planCacheKey": "88782634",
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "157"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 179,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { k: 1 }",
|
||||
"execStats": {
|
||||
"stage": "FETCH",
|
||||
"nReturned": 2,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 3,
|
||||
"advanced": 2,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"docsExamined": 2,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 2,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 3,
|
||||
"advanced": 2,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"keyPattern": {
|
||||
"k": 1
|
||||
},
|
||||
"indexName": "k_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"k": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"k": [
|
||||
"[1.0, 1.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 2,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
134
src/go/tests/doc/out/find_mongo_4.4
Normal file
134
src/go/tests/doc/out/find_mongo_4.4
Normal file
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"op": "query",
|
||||
"ns": "admin.test_db.coll",
|
||||
"command": {
|
||||
"find": "test_db.coll",
|
||||
"filter": {
|
||||
"k": 1
|
||||
},
|
||||
"lsid": {
|
||||
"id": {
|
||||
"$binary": "iiyR1/05SU+m3WOpetzTNQ==",
|
||||
"$type": "04"
|
||||
}
|
||||
},
|
||||
"$db": "admin"
|
||||
},
|
||||
"keysExamined": 2,
|
||||
"docsExamined": 2,
|
||||
"cursorExhausted": true,
|
||||
"numYield": 0,
|
||||
"nreturned": 2,
|
||||
"queryHash": "5C3D15E7",
|
||||
"planCacheKey": "88782634",
|
||||
"locks": {
|
||||
"ReplicationStateTransition": {
|
||||
"acquireCount": {
|
||||
"w": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Global": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Database": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Collection": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mutex": {
|
||||
"acquireCount": {
|
||||
"r": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flowControl": {},
|
||||
"storage": {
|
||||
"data": {
|
||||
"bytesRead": {
|
||||
"$numberLong": "158"
|
||||
},
|
||||
"timeReadingMicros": {
|
||||
"$numberLong": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responseLength": 179,
|
||||
"protocol": "op_msg",
|
||||
"millis": 42,
|
||||
"planSummary": "IXSCAN { k: 1 }",
|
||||
"execStats": {
|
||||
"stage": "FETCH",
|
||||
"nReturned": 2,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 3,
|
||||
"advanced": 2,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"docsExamined": 2,
|
||||
"alreadyHasObj": 0,
|
||||
"inputStage": {
|
||||
"stage": "IXSCAN",
|
||||
"nReturned": 2,
|
||||
"executionTimeMillisEstimate": 0,
|
||||
"works": 3,
|
||||
"advanced": 2,
|
||||
"needTime": 0,
|
||||
"needYield": 0,
|
||||
"saveState": 0,
|
||||
"restoreState": 0,
|
||||
"isEOF": 1,
|
||||
"keyPattern": {
|
||||
"k": 1
|
||||
},
|
||||
"indexName": "k_1",
|
||||
"isMultiKey": false,
|
||||
"multiKeyPaths": {
|
||||
"k": []
|
||||
},
|
||||
"isUnique": false,
|
||||
"isSparse": false,
|
||||
"isPartial": false,
|
||||
"indexVersion": 2,
|
||||
"direction": "forward",
|
||||
"indexBounds": {
|
||||
"k": [
|
||||
"[1.0, 1.0]"
|
||||
]
|
||||
},
|
||||
"keysExamined": 2,
|
||||
"seeks": 1,
|
||||
"dupsTested": 0,
|
||||
"dupsDropped": 0
|
||||
}
|
||||
},
|
||||
"ts": "2020-01-01T00:00:00.000Z",
|
||||
"client": "127.0.0.1",
|
||||
"appName": "MongoDB Shell",
|
||||
"allUsers": [
|
||||
{
|
||||
"user": "root",
|
||||
"db": "admin"
|
||||
}
|
||||
],
|
||||
"user": "root@admin"
|
||||
}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"query":{"c":1},"orderby":{"b":-1}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"query":{"c":1},"orderby":{"b":-1}}}
|
@@ -1 +0,0 @@
|
||||
{"ns":"test.coll","op":"query","query":{"find":"coll","filter":{"c":1},"sort":{"b":-1}}}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user