Files
back_end_oudelaa/docs/performance/SEARCH-COUNT-PLANS-2026-11-16.json

459 lines
12 KiB
JSON

{
"date": "2026-11-15T22:03:30.933Z",
"node": "v24.16.0",
"cpu": "13th Gen Intel(R) Core(TM) i7-13650HX",
"dataset": {
"users": 60,
"posts": 50000
},
"durationSeconds": 5,
"dependencyMode": "local MongoDB, no Redis/external services",
"workloads": {},
"searchPlans": [
{
"text": "music",
"total": 50000,
"equivalent": true,
"timings": {
"separate": {
"medianMs": 753.11,
"maxMs": 792.31
},
"naturalCount": {
"medianMs": 362.2,
"maxMs": 369.33
}
},
"findPlan": {
"docsExamined": 20,
"keysExamined": 20,
"plan": {
"isCached": false,
"stage": "LIMIT",
"limitAmount": 20,
"inputStage": {
"stage": "PROJECTION_SIMPLE",
"transformBy": {
"videoJob": 0
},
"inputStage": {
"stage": "FETCH",
"filter": {
"$and": [
{
"$or": [
{
"authorId": {
"$eq": "000000000000000000000001"
}
},
{
"visibility": {
"$eq": "public"
}
}
]
},
{
"$or": [
{
"content": {
"$regex": "music",
"$options": "i"
}
},
{
"hashtags": {
"$regex": "music",
"$options": "i"
}
},
{
"maqam": {
"$regex": "music",
"$options": "i"
}
},
{
"rhythmSignature": {
"$regex": "music",
"$options": "i"
}
},
{
"style": {
"$regex": "music",
"$options": "i"
}
}
]
},
{
"isArchived": {
"$not": {
"$eq": true
}
}
},
{
"isDeleted": {
"$not": {
"$eq": true
}
}
},
{
"moderationStatus": {
"$not": {
"$eq": "hidden"
}
}
},
{
"processingStatus": {
"$not": {
"$in": [
"failed",
"pending",
"processing"
]
}
}
}
]
},
"inputStage": {
"stage": "IXSCAN",
"keyPattern": {
"createdAt": -1
},
"indexName": "feed_recent_order_v1",
"isMultiKey": false,
"multiKeyPaths": {
"createdAt": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"createdAt": [
"[MaxKey, MinKey]"
]
}
}
}
}
}
}
},
{
"text": "genre0",
"total": 5000,
"equivalent": true,
"timings": {
"separate": {
"medianMs": 449.05,
"maxMs": 1208.04
},
"naturalCount": {
"medianMs": 301.79,
"maxMs": 636.16
}
},
"findPlan": {
"docsExamined": 191,
"keysExamined": 191,
"plan": {
"isCached": false,
"stage": "LIMIT",
"limitAmount": 20,
"inputStage": {
"stage": "PROJECTION_SIMPLE",
"transformBy": {
"videoJob": 0
},
"inputStage": {
"stage": "FETCH",
"filter": {
"$and": [
{
"$or": [
{
"authorId": {
"$eq": "000000000000000000000001"
}
},
{
"visibility": {
"$eq": "public"
}
}
]
},
{
"$or": [
{
"content": {
"$regex": "genre0",
"$options": "i"
}
},
{
"hashtags": {
"$regex": "genre0",
"$options": "i"
}
},
{
"maqam": {
"$regex": "genre0",
"$options": "i"
}
},
{
"rhythmSignature": {
"$regex": "genre0",
"$options": "i"
}
},
{
"style": {
"$regex": "genre0",
"$options": "i"
}
}
]
},
{
"isArchived": {
"$not": {
"$eq": true
}
}
},
{
"isDeleted": {
"$not": {
"$eq": true
}
}
},
{
"moderationStatus": {
"$not": {
"$eq": "hidden"
}
}
},
{
"processingStatus": {
"$not": {
"$in": [
"failed",
"pending",
"processing"
]
}
}
}
]
},
"inputStage": {
"stage": "IXSCAN",
"keyPattern": {
"createdAt": -1
},
"indexName": "feed_recent_order_v1",
"isMultiKey": false,
"multiKeyPaths": {
"createdAt": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"createdAt": [
"[MaxKey, MinKey]"
]
}
}
}
}
}
}
},
{
"text": "not-present-in-fixture",
"total": 0,
"equivalent": true,
"timings": {
"separate": {
"medianMs": 885.79,
"maxMs": 4791.69
},
"naturalCount": {
"medianMs": 2583.78,
"maxMs": 2932.94
}
},
"findPlan": {
"docsExamined": 50000,
"keysExamined": 50000,
"plan": {
"isCached": false,
"stage": "LIMIT",
"limitAmount": 20,
"inputStage": {
"stage": "PROJECTION_SIMPLE",
"transformBy": {
"videoJob": 0
},
"inputStage": {
"stage": "FETCH",
"filter": {
"$and": [
{
"$or": [
{
"authorId": {
"$eq": "000000000000000000000001"
}
},
{
"visibility": {
"$eq": "public"
}
}
]
},
{
"$or": [
{
"content": {
"$regex": "not-present-in-fixture",
"$options": "i"
}
},
{
"hashtags": {
"$regex": "not-present-in-fixture",
"$options": "i"
}
},
{
"maqam": {
"$regex": "not-present-in-fixture",
"$options": "i"
}
},
{
"rhythmSignature": {
"$regex": "not-present-in-fixture",
"$options": "i"
}
},
{
"style": {
"$regex": "not-present-in-fixture",
"$options": "i"
}
}
]
},
{
"isArchived": {
"$not": {
"$eq": true
}
}
},
{
"isDeleted": {
"$not": {
"$eq": true
}
}
},
{
"moderationStatus": {
"$not": {
"$eq": "hidden"
}
}
},
{
"processingStatus": {
"$not": {
"$in": [
"failed",
"pending",
"processing"
]
}
}
}
]
},
"inputStage": {
"stage": "IXSCAN",
"keyPattern": {
"createdAt": -1
},
"indexName": "feed_recent_order_v1",
"isMultiKey": false,
"multiKeyPaths": {
"createdAt": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"createdAt": [
"[MaxKey, MinKey]"
]
}
}
}
}
}
}
}
],
"trendingExplain": {
"nReturned": 20,
"totalKeysExamined": 20,
"totalDocsExamined": 20,
"hasBlockingSort": false
},
"deepPaginationExplain": {
"offset": 4000,
"skip": {
"returned": 20,
"keysExamined": 4020,
"docsExamined": 4020
},
"keyset": {
"returned": 20,
"keysExamined": 248,
"docsExamined": 248
}
},
"feedCandidateValidation": {
"rankingRows": 400,
"hydratedRankingRows": 0,
"hydratedPageRows": 20,
"deletionRecheck": "passed"
},
"keysetValidation": {
"tiedRanks": "passed",
"insertionAhead": "passed",
"deletionAhead": "passed"
}
}