docs: sync documentation with latest codebase state (merged)
- Update Activity Log with 108 missing commits (48 backend + 60 frontend) - Update version references: backend v2.8.79, frontend v2.8.94 - Update migration count: 18 migrations (0000-0017) - Update Telegram Mini App Flow to v2.8.94 - Update Payment Flow - Scanner to 2026-06-05 - Update all architectural and database references - Add MongoDB removal handoff document with updated versions Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -0,0 +1,872 @@
|
||||
{
|
||||
"generatedAt": "2026-05-31T14:29:51.927Z",
|
||||
"config": {
|
||||
"baseUrl": "https://dev.manwe.qzz.io",
|
||||
"sshHost": "root@5.78.213.189",
|
||||
"mongoContainer": "amanat-dev-mongodb",
|
||||
"mongoDb": "marketplace",
|
||||
"mongoAuthDb": "admin",
|
||||
"backendContainer": "amanat-dev-backend",
|
||||
"resetBackendLimiter": true,
|
||||
"containers": [
|
||||
"amanat-dev-nginx",
|
||||
"amanat-dev-backend",
|
||||
"amanat-dev-frontend",
|
||||
"amanat-dev-postgres",
|
||||
"amanat-dev-mongodb",
|
||||
"amanat-dev-redis",
|
||||
"amanat-dev-scanner"
|
||||
],
|
||||
"templateShareableLink": "logo-design-template",
|
||||
"outputDir": "/Users/manwe/CascadeProjects/escrow/nick-doc/09 - Audits/Mongo API Profiles/2026-05-31T14-26-19-969Z"
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"name": "health",
|
||||
"method": "GET",
|
||||
"path": "/api/health",
|
||||
"requestCount": 5,
|
||||
"rps": 2.5,
|
||||
"latency": {
|
||||
"averageMs": 327.2,
|
||||
"p50Ms": 233,
|
||||
"p90Ms": 707,
|
||||
"p95Ms": 707,
|
||||
"p99Ms": 707,
|
||||
"maxMs": 707
|
||||
},
|
||||
"non2xx": 0,
|
||||
"statusCodeStats": {
|
||||
"200": {
|
||||
"count": 5
|
||||
}
|
||||
},
|
||||
"mongoProfile": {
|
||||
"totalOperations": 0,
|
||||
"totalMillis": 0,
|
||||
"groups": []
|
||||
},
|
||||
"blockIoDelta": {
|
||||
"amanat-dev-nginx": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-backend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-frontend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-postgres": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-mongodb": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-redis": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-scanner": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 10000
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "categories",
|
||||
"method": "GET",
|
||||
"path": "/api/marketplace/categories",
|
||||
"requestCount": 10,
|
||||
"rps": 3.34,
|
||||
"latency": {
|
||||
"averageMs": 390.6,
|
||||
"p50Ms": 232,
|
||||
"p90Ms": 731,
|
||||
"p95Ms": 1308,
|
||||
"p99Ms": 1308,
|
||||
"maxMs": 1308
|
||||
},
|
||||
"non2xx": 0,
|
||||
"statusCodeStats": {
|
||||
"200": {
|
||||
"count": 10
|
||||
}
|
||||
},
|
||||
"mongoProfile": {
|
||||
"totalOperations": 0,
|
||||
"totalMillis": 0,
|
||||
"groups": []
|
||||
},
|
||||
"blockIoDelta": {
|
||||
"amanat-dev-nginx": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-backend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-frontend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-postgres": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-mongodb": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-redis": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-scanner": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "categories_tree",
|
||||
"method": "GET",
|
||||
"path": "/api/marketplace/categories/tree",
|
||||
"requestCount": 10,
|
||||
"rps": 5,
|
||||
"latency": {
|
||||
"averageMs": 342.5,
|
||||
"p50Ms": 240,
|
||||
"p90Ms": 742,
|
||||
"p95Ms": 752,
|
||||
"p99Ms": 752,
|
||||
"maxMs": 752
|
||||
},
|
||||
"non2xx": 0,
|
||||
"statusCodeStats": {
|
||||
"200": {
|
||||
"count": 10
|
||||
}
|
||||
},
|
||||
"mongoProfile": {
|
||||
"totalOperations": 10,
|
||||
"totalMillis": 0,
|
||||
"groups": [
|
||||
{
|
||||
"namespace": "marketplace.categories",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "categories",
|
||||
"planSummary": "IXSCAN { isActive: 1 }",
|
||||
"queryHash": "35A725FF",
|
||||
"planCacheKey": "80333596",
|
||||
"queryShape": "filter={isActive:boolean} sort={name:number,order:number}",
|
||||
"count": 10,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 240,
|
||||
"keysExamined": 240,
|
||||
"nreturned": 240,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 65670,
|
||||
"numYield": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"blockIoDelta": {
|
||||
"amanat-dev-nginx": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-backend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-frontend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-postgres": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-mongodb": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-redis": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-scanner": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sellers",
|
||||
"method": "GET",
|
||||
"path": "/api/marketplace/sellers",
|
||||
"requestCount": 10,
|
||||
"rps": 5,
|
||||
"latency": {
|
||||
"averageMs": 341.6,
|
||||
"p50Ms": 245,
|
||||
"p90Ms": 729,
|
||||
"p95Ms": 733,
|
||||
"p99Ms": 733,
|
||||
"maxMs": 733
|
||||
},
|
||||
"non2xx": 0,
|
||||
"statusCodeStats": {
|
||||
"200": {
|
||||
"count": 10
|
||||
}
|
||||
},
|
||||
"mongoProfile": {
|
||||
"totalOperations": 10,
|
||||
"totalMillis": 0,
|
||||
"groups": [
|
||||
{
|
||||
"namespace": "marketplace.users",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "users",
|
||||
"planSummary": "IXSCAN { role: 1 }",
|
||||
"queryHash": "BA1E76D1",
|
||||
"planCacheKey": "0CB19E91",
|
||||
"queryShape": "filter={isEmailVerified:boolean,role:string} projection={_id:number,email:number,firstName:number,lastName:number,profile.avatar:number}",
|
||||
"count": 10,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 20,
|
||||
"keysExamined": 20,
|
||||
"nreturned": 20,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 3610,
|
||||
"numYield": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"blockIoDelta": {
|
||||
"amanat-dev-nginx": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-backend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-frontend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-postgres": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-mongodb": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-redis": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-scanner": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 20000
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "template_public",
|
||||
"method": "GET",
|
||||
"path": "/api/marketplace/request-templates/public/logo-design-template",
|
||||
"requestCount": 10,
|
||||
"rps": 5,
|
||||
"latency": {
|
||||
"averageMs": 340.3,
|
||||
"p50Ms": 241,
|
||||
"p90Ms": 734,
|
||||
"p95Ms": 740,
|
||||
"p99Ms": 740,
|
||||
"maxMs": 740
|
||||
},
|
||||
"non2xx": 0,
|
||||
"statusCodeStats": {
|
||||
"200": {
|
||||
"count": 10
|
||||
}
|
||||
},
|
||||
"mongoProfile": {
|
||||
"totalOperations": 30,
|
||||
"totalMillis": 0,
|
||||
"groups": [
|
||||
{
|
||||
"namespace": "marketplace.requesttemplates",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "requesttemplates",
|
||||
"planSummary": "IXSCAN { shareableLink: 1 }",
|
||||
"queryHash": "69A943C9",
|
||||
"planCacheKey": "7C668FB5",
|
||||
"queryShape": "filter={$or:[{expiresAt:null},{expiresAt:{$gt:{}}}],isActive:boolean,shareableLink:string}",
|
||||
"count": 10,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 10,
|
||||
"keysExamined": 10,
|
||||
"nreturned": 10,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 15470,
|
||||
"numYield": 0
|
||||
},
|
||||
{
|
||||
"namespace": "marketplace.users",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "users",
|
||||
"planSummary": "IXSCAN { _id: 1 }",
|
||||
"queryHash": "39E03FF8",
|
||||
"planCacheKey": "AED36A0D",
|
||||
"queryShape": "filter={_id:{$in:[ObjectId]}} projection={email:number,firstName:number,lastName:number}",
|
||||
"count": 10,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 10,
|
||||
"keysExamined": 10,
|
||||
"nreturned": 10,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 2180,
|
||||
"numYield": 0
|
||||
},
|
||||
{
|
||||
"namespace": "marketplace.categories",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "categories",
|
||||
"planSummary": "IXSCAN { _id: 1 }",
|
||||
"queryHash": "ABAD6477",
|
||||
"planCacheKey": "E494D204",
|
||||
"queryShape": "filter={_id:{$in:[ObjectId]}} projection={name:number,nameEn:number}",
|
||||
"count": 10,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 10,
|
||||
"keysExamined": 10,
|
||||
"nreturned": 10,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 1890,
|
||||
"numYield": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"blockIoDelta": {
|
||||
"amanat-dev-nginx": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-backend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-frontend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-postgres": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-mongodb": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-redis": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-scanner": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "payment_options_template",
|
||||
"method": "GET",
|
||||
"path": "/api/payment/request-network/options?currency=USD&amount=0.01&sellerId=6a1bfd1400e8b8205e86db9e&templateId=6a1c4512d07eb576c3509690",
|
||||
"requestCount": 50,
|
||||
"rps": 12.5,
|
||||
"latency": {
|
||||
"averageMs": 303.52,
|
||||
"p50Ms": 255,
|
||||
"p90Ms": 273,
|
||||
"p95Ms": 753,
|
||||
"p99Ms": 758,
|
||||
"maxMs": 758
|
||||
},
|
||||
"non2xx": 0,
|
||||
"statusCodeStats": {
|
||||
"200": {
|
||||
"count": 50
|
||||
}
|
||||
},
|
||||
"mongoProfile": {
|
||||
"totalOperations": 100,
|
||||
"totalMillis": 0,
|
||||
"groups": [
|
||||
{
|
||||
"namespace": "marketplace.requesttemplates",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "requesttemplates",
|
||||
"planSummary": "IDHACK",
|
||||
"queryHash": "3B008735",
|
||||
"planCacheKey": "",
|
||||
"queryShape": "filter={_id:ObjectId} projection={paymentConfig:number}",
|
||||
"count": 50,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 50,
|
||||
"keysExamined": 50,
|
||||
"nreturned": 50,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 12850,
|
||||
"numYield": 0
|
||||
},
|
||||
{
|
||||
"namespace": "marketplace.shopsettings",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "shopsettings",
|
||||
"planSummary": "IXSCAN { sellerId: 1 }",
|
||||
"queryHash": "BF51CF8A",
|
||||
"planCacheKey": "9CF87C58",
|
||||
"queryShape": "filter={sellerId:ObjectId} projection={paymentConfig:number}",
|
||||
"count": 50,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 0,
|
||||
"keysExamined": 0,
|
||||
"nreturned": 0,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 5650,
|
||||
"numYield": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"blockIoDelta": {
|
||||
"amanat-dev-nginx": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-backend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-frontend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-postgres": {
|
||||
"readBytes": 100000,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-mongodb": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-redis": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-scanner": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "addresses_me",
|
||||
"method": "GET",
|
||||
"path": "/api/addresses",
|
||||
"requestCount": 10,
|
||||
"rps": 5,
|
||||
"latency": {
|
||||
"averageMs": 330.9,
|
||||
"p50Ms": 239,
|
||||
"p90Ms": 707,
|
||||
"p95Ms": 715,
|
||||
"p99Ms": 715,
|
||||
"maxMs": 715
|
||||
},
|
||||
"non2xx": 0,
|
||||
"statusCodeStats": {
|
||||
"200": {
|
||||
"count": 10
|
||||
}
|
||||
},
|
||||
"mongoProfile": {
|
||||
"totalOperations": 10,
|
||||
"totalMillis": 0,
|
||||
"groups": [
|
||||
{
|
||||
"namespace": "marketplace.addresses",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "addresses",
|
||||
"planSummary": "IXSCAN { userId: 1 }",
|
||||
"queryHash": "6935090D",
|
||||
"planCacheKey": "C80BED60",
|
||||
"queryShape": "filter={userId:ObjectId} sort={createdAt:number,primary:number}",
|
||||
"count": 10,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 30,
|
||||
"keysExamined": 30,
|
||||
"nreturned": 30,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 13800,
|
||||
"numYield": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"blockIoDelta": {
|
||||
"amanat-dev-nginx": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-backend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-frontend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-postgres": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-mongodb": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-redis": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-scanner": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "purchase_requests_my",
|
||||
"method": "GET",
|
||||
"path": "/api/marketplace/purchase-requests/my",
|
||||
"requestCount": 10,
|
||||
"rps": 5,
|
||||
"latency": {
|
||||
"averageMs": 353.3,
|
||||
"p50Ms": 256,
|
||||
"p90Ms": 747,
|
||||
"p95Ms": 753,
|
||||
"p99Ms": 753,
|
||||
"maxMs": 753
|
||||
},
|
||||
"non2xx": 0,
|
||||
"statusCodeStats": {
|
||||
"200": {
|
||||
"count": 10
|
||||
}
|
||||
},
|
||||
"mongoProfile": {
|
||||
"totalOperations": 30,
|
||||
"totalMillis": 1,
|
||||
"groups": [
|
||||
{
|
||||
"namespace": "marketplace.purchaserequests",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "purchaserequests",
|
||||
"planSummary": "IXSCAN { createdAt: -1 }",
|
||||
"queryHash": "6F3C3F41",
|
||||
"planCacheKey": "A22CDD0E",
|
||||
"queryShape": "filter={buyerId:ObjectId} sort={createdAt:number}",
|
||||
"count": 10,
|
||||
"millisTotal": 1,
|
||||
"millisAverage": 0.1,
|
||||
"millisP50": 0,
|
||||
"millisP95": 1,
|
||||
"millisMax": 1,
|
||||
"docsExamined": 0,
|
||||
"keysExamined": 0,
|
||||
"nreturned": 0,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 1170,
|
||||
"numYield": 0
|
||||
},
|
||||
{
|
||||
"namespace": "marketplace.purchaserequests",
|
||||
"operation": "command",
|
||||
"command": "aggregate",
|
||||
"collection": "purchaserequests",
|
||||
"planSummary": "COUNT_SCAN { buyerId: 1 }",
|
||||
"queryHash": "C22625EF",
|
||||
"planCacheKey": "BD75157B",
|
||||
"queryShape": "pipeline=[{$match:{buyerId:ObjectId}},{$group:{_id:number,n:{$sum:number}}}]",
|
||||
"count": 10,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 0,
|
||||
"keysExamined": 10,
|
||||
"nreturned": 0,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 1170,
|
||||
"numYield": 0
|
||||
},
|
||||
{
|
||||
"namespace": "marketplace.payments",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "payments",
|
||||
"planSummary": "IXSCAN { status: 1, createdAt: -1 }, IXSCAN { status: 1, createdAt: -1 }, IXSCAN { status: 1, createdAt: -1 }, IXSCAN { status: 1, createdAt: -1 }",
|
||||
"queryHash": "3B29FB2B",
|
||||
"planCacheKey": "8762DEE5",
|
||||
"queryShape": "filter={purchaseRequestId:{$in:[]},status:{$in:[string,string,string,string]}} sort={createdAt:number}",
|
||||
"count": 10,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 0,
|
||||
"keysExamined": 0,
|
||||
"nreturned": 0,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 1090,
|
||||
"numYield": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"blockIoDelta": {
|
||||
"amanat-dev-nginx": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-backend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-frontend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-postgres": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-mongodb": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-redis": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-scanner": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 20000
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "auth_login",
|
||||
"method": "POST",
|
||||
"path": "/api/auth/login",
|
||||
"requestCount": 5,
|
||||
"rps": 1.25,
|
||||
"latency": {
|
||||
"averageMs": 724.2,
|
||||
"p50Ms": 636,
|
||||
"p90Ms": 1090,
|
||||
"p95Ms": 1090,
|
||||
"p99Ms": 1090,
|
||||
"maxMs": 1090
|
||||
},
|
||||
"non2xx": 0,
|
||||
"statusCodeStats": {
|
||||
"200": {
|
||||
"count": 5
|
||||
}
|
||||
},
|
||||
"mongoProfile": {
|
||||
"totalOperations": 15,
|
||||
"totalMillis": 0,
|
||||
"groups": [
|
||||
{
|
||||
"namespace": "marketplace.users",
|
||||
"operation": "query",
|
||||
"command": "find",
|
||||
"collection": "users",
|
||||
"planSummary": "IXSCAN { email: 1 }",
|
||||
"queryHash": "106ECB7C",
|
||||
"planCacheKey": "AB4716E0",
|
||||
"queryShape": "filter={email:string,status:string}",
|
||||
"count": 5,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 5,
|
||||
"keysExamined": 5,
|
||||
"nreturned": 5,
|
||||
"ninserted": 0,
|
||||
"nMatched": 0,
|
||||
"nModified": 0,
|
||||
"responseLength": 17735,
|
||||
"numYield": 0
|
||||
},
|
||||
{
|
||||
"namespace": "marketplace.users",
|
||||
"operation": "update",
|
||||
"command": "q",
|
||||
"collection": "users",
|
||||
"planSummary": "IDHACK",
|
||||
"queryHash": "",
|
||||
"planCacheKey": "",
|
||||
"queryShape": "",
|
||||
"count": 5,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 5,
|
||||
"keysExamined": 5,
|
||||
"nreturned": 0,
|
||||
"ninserted": 0,
|
||||
"nMatched": 5,
|
||||
"nModified": 5,
|
||||
"responseLength": 0,
|
||||
"numYield": 0
|
||||
},
|
||||
{
|
||||
"namespace": "marketplace.users",
|
||||
"operation": "update",
|
||||
"command": "q",
|
||||
"collection": "users",
|
||||
"planSummary": "IXSCAN { _id: 1 }",
|
||||
"queryHash": "E515C562",
|
||||
"planCacheKey": "5EA96075",
|
||||
"queryShape": "",
|
||||
"count": 5,
|
||||
"millisTotal": 0,
|
||||
"millisAverage": 0,
|
||||
"millisP50": 0,
|
||||
"millisP95": 0,
|
||||
"millisMax": 0,
|
||||
"docsExamined": 5,
|
||||
"keysExamined": 5,
|
||||
"nreturned": 0,
|
||||
"ninserted": 0,
|
||||
"nMatched": 5,
|
||||
"nModified": 5,
|
||||
"responseLength": 0,
|
||||
"numYield": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"blockIoDelta": {
|
||||
"amanat-dev-nginx": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-backend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-frontend": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-postgres": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-mongodb": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-redis": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
},
|
||||
"amanat-dev-scanner": {
|
||||
"readBytes": 0,
|
||||
"writeBytes": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
# Mongo API Query Profile
|
||||
|
||||
Generated: 2026-05-31T14:29:51.927Z
|
||||
Base URL: `https://dev.manwe.qzz.io`
|
||||
Mongo: `amanat-dev-mongodb/marketplace`
|
||||
|
||||
This is a query-shape profile, not a max-throughput test. Request counts are intentionally small so the backend rate limiter does not dominate the profile.
|
||||
|
||||
## Endpoint Summary
|
||||
|
||||
| Endpoint | Requests | Avg | P95 | P99 | Non-2xx | Mongo ops | Top Mongo query |
|
||||
|---|---:|---:|---:|---:|---:|---:|---|
|
||||
| `GET /api/health` | 5 | 327.2ms | 707ms | 707ms | 0 | 0 | - |
|
||||
| `GET /api/marketplace/categories` | 10 | 390.6ms | 1308ms | 1308ms | 0 | 0 | - |
|
||||
| `GET /api/marketplace/categories/tree` | 10 | 342.5ms | 752ms | 752ms | 0 | 10 | `categories` find (10x, IXSCAN { isActive: 1 }) |
|
||||
| `GET /api/marketplace/sellers` | 10 | 341.6ms | 733ms | 733ms | 0 | 10 | `users` find (10x, IXSCAN { role: 1 }) |
|
||||
| `GET /api/marketplace/request-templates/public/logo-design-template` | 10 | 340.3ms | 740ms | 740ms | 0 | 30 | `requesttemplates` find (10x, IXSCAN { shareableLink: 1 }) |
|
||||
| `GET /api/payment/request-network/options?currency=USD&amount=0.01&sellerId=6a1bfd1400e8b8205e86db9e&templateId=6a1c4512d07eb576c3509690` | 50 | 303.52ms | 753ms | 758ms | 0 | 100 | `requesttemplates` find (50x, IDHACK) |
|
||||
| `GET /api/addresses` | 10 | 330.9ms | 715ms | 715ms | 0 | 10 | `addresses` find (10x, IXSCAN { userId: 1 }) |
|
||||
| `GET /api/marketplace/purchase-requests/my` | 10 | 353.3ms | 753ms | 753ms | 0 | 30 | `purchaserequests` find (10x, IXSCAN { createdAt: -1 }) |
|
||||
| `POST /api/auth/login` | 5 | 724.2ms | 1090ms | 1090ms | 0 | 15 | `users` find (5x, IXSCAN { email: 1 }) |
|
||||
|
||||
## Query Groups
|
||||
|
||||
### health
|
||||
|
||||
Path: `GET /api/health`
|
||||
Status codes: `{"200":{"count":5}}`
|
||||
|
||||
No Mongo operations captured in this endpoint window.
|
||||
|
||||
### categories
|
||||
|
||||
Path: `GET /api/marketplace/categories`
|
||||
Status codes: `{"200":{"count":10}}`
|
||||
|
||||
No Mongo operations captured in this endpoint window.
|
||||
|
||||
### categories_tree
|
||||
|
||||
Path: `GET /api/marketplace/categories/tree`
|
||||
Status codes: `{"200":{"count":10}}`
|
||||
|
||||
| Collection | Command | Count | Total ms | Avg ms | P95 ms | Plan | Docs | Keys | Returned | Shape |
|
||||
|---|---|---:|---:|---:|---:|---|---:|---:|---:|---|
|
||||
| `categories` | `find` | 10 | 0 | 0 | 0 | `IXSCAN { isActive: 1 }` | 240 | 240 | 240 | `filter={isActive:boolean} sort={name:number,order:number}` |
|
||||
|
||||
### sellers
|
||||
|
||||
Path: `GET /api/marketplace/sellers`
|
||||
Status codes: `{"200":{"count":10}}`
|
||||
|
||||
| Collection | Command | Count | Total ms | Avg ms | P95 ms | Plan | Docs | Keys | Returned | Shape |
|
||||
|---|---|---:|---:|---:|---:|---|---:|---:|---:|---|
|
||||
| `users` | `find` | 10 | 0 | 0 | 0 | `IXSCAN { role: 1 }` | 20 | 20 | 20 | `filter={isEmailVerified:boolean,role:string} projection={_id:number,email:number,firstName:number,lastName:number,profile.avatar:number}` |
|
||||
|
||||
### template_public
|
||||
|
||||
Path: `GET /api/marketplace/request-templates/public/logo-design-template`
|
||||
Status codes: `{"200":{"count":10}}`
|
||||
|
||||
| Collection | Command | Count | Total ms | Avg ms | P95 ms | Plan | Docs | Keys | Returned | Shape |
|
||||
|---|---|---:|---:|---:|---:|---|---:|---:|---:|---|
|
||||
| `requesttemplates` | `find` | 10 | 0 | 0 | 0 | `IXSCAN { shareableLink: 1 }` | 10 | 10 | 10 | `filter={$or:[{expiresAt:null},{expiresAt:{$gt:{}}}],isActive:boolean,shareableLink:string}` |
|
||||
| `users` | `find` | 10 | 0 | 0 | 0 | `IXSCAN { _id: 1 }` | 10 | 10 | 10 | `filter={_id:{$in:[ObjectId]}} projection={email:number,firstName:number,lastName:number}` |
|
||||
| `categories` | `find` | 10 | 0 | 0 | 0 | `IXSCAN { _id: 1 }` | 10 | 10 | 10 | `filter={_id:{$in:[ObjectId]}} projection={name:number,nameEn:number}` |
|
||||
|
||||
### payment_options_template
|
||||
|
||||
Path: `GET /api/payment/request-network/options?currency=USD&amount=0.01&sellerId=6a1bfd1400e8b8205e86db9e&templateId=6a1c4512d07eb576c3509690`
|
||||
Status codes: `{"200":{"count":50}}`
|
||||
|
||||
| Collection | Command | Count | Total ms | Avg ms | P95 ms | Plan | Docs | Keys | Returned | Shape |
|
||||
|---|---|---:|---:|---:|---:|---|---:|---:|---:|---|
|
||||
| `requesttemplates` | `find` | 50 | 0 | 0 | 0 | `IDHACK` | 50 | 50 | 50 | `filter={_id:ObjectId} projection={paymentConfig:number}` |
|
||||
| `shopsettings` | `find` | 50 | 0 | 0 | 0 | `IXSCAN { sellerId: 1 }` | 0 | 0 | 0 | `filter={sellerId:ObjectId} projection={paymentConfig:number}` |
|
||||
|
||||
### addresses_me
|
||||
|
||||
Path: `GET /api/addresses`
|
||||
Status codes: `{"200":{"count":10}}`
|
||||
|
||||
| Collection | Command | Count | Total ms | Avg ms | P95 ms | Plan | Docs | Keys | Returned | Shape |
|
||||
|---|---|---:|---:|---:|---:|---|---:|---:|---:|---|
|
||||
| `addresses` | `find` | 10 | 0 | 0 | 0 | `IXSCAN { userId: 1 }` | 30 | 30 | 30 | `filter={userId:ObjectId} sort={createdAt:number,primary:number}` |
|
||||
|
||||
### purchase_requests_my
|
||||
|
||||
Path: `GET /api/marketplace/purchase-requests/my`
|
||||
Status codes: `{"200":{"count":10}}`
|
||||
|
||||
| Collection | Command | Count | Total ms | Avg ms | P95 ms | Plan | Docs | Keys | Returned | Shape |
|
||||
|---|---|---:|---:|---:|---:|---|---:|---:|---:|---|
|
||||
| `purchaserequests` | `find` | 10 | 1 | 0.1 | 1 | `IXSCAN { createdAt: -1 }` | 0 | 0 | 0 | `filter={buyerId:ObjectId} sort={createdAt:number}` |
|
||||
| `purchaserequests` | `aggregate` | 10 | 0 | 0 | 0 | `COUNT_SCAN { buyerId: 1 }` | 0 | 10 | 0 | `pipeline=[{$match:{buyerId:ObjectId}},{$group:{_id:number,n:{$sum:number}}}]` |
|
||||
| `payments` | `find` | 10 | 0 | 0 | 0 | `IXSCAN { status: 1, createdAt: -1 }, IXSCAN { status: 1, createdAt: -1 }, IXSCAN { status: 1, createdAt: -1 }, IXSCAN { status: 1, createdAt: -1 }` | 0 | 0 | 0 | `filter={purchaseRequestId:{$in:[]},status:{$in:[string,string,string,string]}} sort={createdAt:number}` |
|
||||
|
||||
### auth_login
|
||||
|
||||
Path: `POST /api/auth/login`
|
||||
Status codes: `{"200":{"count":5}}`
|
||||
|
||||
| Collection | Command | Count | Total ms | Avg ms | P95 ms | Plan | Docs | Keys | Returned | Shape |
|
||||
|---|---|---:|---:|---:|---:|---|---:|---:|---:|---|
|
||||
| `users` | `find` | 5 | 0 | 0 | 0 | `IXSCAN { email: 1 }` | 5 | 5 | 5 | `filter={email:string,status:string}` |
|
||||
| `users` | `q` | 5 | 0 | 0 | 0 | `IDHACK` | 5 | 5 | 0 | `-` |
|
||||
| `users` | `q` | 5 | 0 | 0 | 0 | `IXSCAN { _id: 1 }` | 5 | 5 | 0 | `-` |
|
||||
|
||||
## Block I/O Deltas
|
||||
- health: amanat-dev-scanner: read 0 B, write 10 KB
|
||||
- categories: no container block I/O delta
|
||||
- categories_tree: no container block I/O delta
|
||||
- sellers: amanat-dev-scanner: read 0 B, write 20 KB
|
||||
- template_public: no container block I/O delta
|
||||
- payment_options_template: amanat-dev-postgres: read 100 KB, write 0 B
|
||||
- addresses_me: no container block I/O delta
|
||||
- purchase_requests_my: amanat-dev-scanner: read 0 B, write 20 KB
|
||||
- auth_login: no container block I/O delta
|
||||
|
||||
Reference in New Issue
Block a user