I have…
- [x] Read the following guideline: https://docs.squidex.io/01-getting-started/installation/troubleshooting-and-support. I understand that my support request might get deleted if I do not follow the guideline.
- [x] Used code blocks with ``` to format my code examples like JSON or logs properly.
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [ ] Bug report (?)
- [x] Performance issue (?)
- [ ] Documentation issue or request
Current behavior
As the last bug report is already closed and it seems it is most likely solved, we now run on last version for few days and after checking log from mongo it seems it still have bunch of “slow query”.
{
"command": {
"$db": "Squidex",
"filter": {
"_ai": "2a88849e-4582-4606-83bc-52102cbd6544",
"dl": {
"$ne": true
},
"id": {
"$ne": "00000000-0000-0000-0000-000000000000"
},
"mt": {
"$ne": {
"$date": "1970-01-01T00:00:00.000Z"
}
}
},
"find": "States_Assets2",
"limit": 100,
"lsid": {
"id": {
"$uuid": "c2cc8c27-7c49-477c-a228-c86e769b3092"
}
},
"skip": 13600,
"sort": {
"id": 1,
"mt": -1
}
},
"cursorExhausted": true,
"docsExamined": 100,
"durationMillis": 160,
"keysExamined": 77268,
"locks": {
"FeatureCompatibilityVersion": {
"acquireCount": {
"r": 78
}
},
"Global": {
"acquireCount": {
"r": 78
}
},
"Mutex": {
"acquireCount": {
"r": 1
}
}
},
"nreturned": 100,
"ns": "Squidex.States_Assets2",
"numYields": 77,
"planCacheKey": "60B1945E",
"planSummary": "IXSCAN { mt: -1, id: 1, _ai: 1, dl: 1, pi: 1, td: 1 }",
"protocol": "op_msg",
"queryFramework": "classic",
"queryHash": "52935024",
"remote": "10.0.28.4:55000",
"reslen": 80947,
"storage": {},
"type": "command"
}
and this:
{
"command": {
"$db": "SquidexContent",
"aggregate": "States_Contents_Published3",
"cursor": {},
"lsid": {
"id": {
"$uuid": "3bf610e2-1b62-4116-8e5f-3cc82b7b70d7"
}
},
"pipeline": [
{
"$match": {
"_ai": "2a88849e-4582-4606-83bc-52102cbd6544",
"_si": {
"$in": [
"366cf366-a894-4b4e-8c69-723f87f85a34"
]
},
"dl": {
"$ne": true
},
"id": {
"$gt": "00000000-0000-0000-0000-000000000000"
},
"mt": {
"$gt": {
"$date": "1970-01-01T00:00:00.000Z"
}
}
}
},
{
"$project": {
"_id": 1,
"ct": 1,
"id": 1
}
},
{
"$sort": {
"ct": -1,
"id": 1
}
},
{
"$skip": 1300
},
{
"$limit": 100
},
{
"$lookup": {
"as": "Joined",
"from": "States_Contents_Published3",
"let": {
"id": "$_id"
},
"pipeline": [
{
"$match": {
"$expr": {
"$eq": [
"$_id",
"$$id"
]
}
}
},
{
"$project": {
"dd": 0
}
}
]
}
},
{
"$project": {
"Joined": 1
}
}
]
},
"cursorExhausted": true,
"docsExamined": 2409,
"durationMillis": 192,
"hasSortStage": true,
"keysExamined": 2410,
"locks": {
"FeatureCompatibilityVersion": {
"acquireCount": {
"r": 207
}
},
"Global": {
"acquireCount": {
"r": 207
}
},
"Mutex": {
"acquireCount": {
"r": 202
}
}
},
"nreturned": 100,
"ns": "SquidexContent.States_Contents_Published3",
"numYields": 5,
"planCacheKey": "1643EE5E",
"planSummary": "IXSCAN { _si: 1, dl: 1, mt: -1 }",
"protocol": "op_msg",
"queryFramework": "classic",
"queryHash": "518D9E69",
"remote": "10.0.28.4:57628",
"reslen": 897299,
"storage": {},
"type": "command"
}
Both of this “slow” query seems to be common:
It may be normal. I’m not sure if I notice any real (performance) impact as the last change already reduced mongo load significantly.
Environment
- [x] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: 7.9.0
Browser:
- [ ] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge