Yes, You are right mate, the filter is taking a long time. Any suggestions to fix it? Thanks for helping out.
{
"#operator": "Sequence",
"#stats": {
"#phaseSwitches": 1
},
"~children": [
{
"#operator": "Authorize",
"#stats": {
"#phaseSwitches": 3,
"servTime": "143.0067ms"
},
"privileges": {
"List": [
{
"Target": "default:Documents",
"Priv": 7
}
]
},
"~child": {
"#operator": "Sequence",
"#stats": {
"#phaseSwitches": 1
},
"~children": [
{
"#operator": "IntersectScan",
"#stats": {
"#itemsIn": 6968,
"#itemsOut": 6358,
"#phaseSwitches": 26659,
"execTime": "21ms",
"kernTime": "16.1411366s"
},
"scans": [
{
"#operator": "DistinctScan",
"#stats": {
"#itemsIn": 610,
"#itemsOut": 610,
"#phaseSwitches": 2447,
"kernTime": "151.0089ms"
},
"scan": {
"#operator": "IndexScan3",
"#stats": {
"#itemsOut": 610,
"#phaseSwitches": 2446,
"execTime": "1.9981ms",
"kernTime": "1.0011ms",
"servTime": "148.0097ms"
},
"index": "QA_idx_Mandatory_L",
"index_id": "3e874286627ccab1",
"index_projection": {
"primary_key": true
},
"keyspace": "Documents",
"namespace": "default",
"spans": [
{
"exact": true,
"range": [
{
"high": "0",
"inclusion": 3,
"low": "0"
},
{
"high": "\"web3__1\"",
"inclusion": 3,
"low": "\"web3__1\""
},
{
"inclusion": 1,
"low": "\"2000-01-01T00:00:00\""
}
]
},
{
"exact": true,
"range": [
{
"high": "1",
"inclusion": 3,
"low": "1"
},
{
"high": "\"web3__1\"",
"inclusion": 3,
"low": "\"web3__1\""
},
{
"inclusion": 1,
"low": "\"2000-01-01T00:00:00\""
}
]
},
{
"exact": true,
"range": [
{
"high": "2",
"inclusion": 3,
"low": "2"
},
{
"high": "\"web3__1\"",
"inclusion": 3,
"low": "\"web3__1\""
},
{
"inclusion": 1,
"low": "\"2000-01-01T00:00:00\""
}
]
},
{
"exact": true,
"range": [
{
"high": "3",
"inclusion": 3,
"low": "3"
},
{
"high": "\"web3__1\"",
"inclusion": 3,
"low": "\"web3__1\""
},
{
"inclusion": 1,
"low": "\"2000-01-01T00:00:00\""
}
]
},
{
"exact": true,
"range": [
{
"high": "4",
"inclusion": 3,
"low": "4"
},
{
"high": "\"web3__1\"",
"inclusion": 3,
"low": "\"web3__1\""
},
{
"inclusion": 1,
"low": "\"2000-01-01T00:00:00\""
}
]
},
{
"exact": true,
"range": [
{
"high": "5",
"inclusion": 3,
"low": "5"
},
{
"high": "\"web3__1\"",
"inclusion": 3,
"low": "\"web3__1\""
},
{
"inclusion": 1,
"low": "\"2000-01-01T00:00:00\""
}
]
}
],
"using": "gsi",
"#time_normal": "00:00.1500",
"#time_absolute": 0.15000780000000002
}
},
{
"#operator": "DistinctScan",
"#stats": {
"#itemsIn": 6358,
"#itemsOut": 6358,
"#phaseSwitches": 25439,
"execTime": "2.9975ms",
"kernTime": "148.0114ms"
},
"scan": {
"#operator": "IndexScan3",
"#stats": {
"#itemsOut": 6358,
"#phaseSwitches": 25437,
"execTime": "5.995ms",
"kernTime": "11.0032ms",
"servTime": "134.0107ms"
},
"index": "QA_idx_Status_Title_Body_StandFirst_Count",
"index_id": "1d0fa20b03de3dc6",
"index_projection": {
"primary_key": true
},
"keyspace": "Documents",
"namespace": "default",
"spans": [
{
"exact": true,
"range": [
{
"high": "\"article\"",
"inclusion": 3,
"low": "\"article\""
}
]
}
],
"using": "gsi",
"#time_normal": "00:00.1400",
"#time_absolute": 0.1400057
},
"#time_normal": "00:00.0029",
"#time_absolute": 0.0029975
}
],
"#time_normal": "21:00",
"#time_absolute": 1260
},
{
"#operator": "Fetch",
"#stats": {
"#itemsIn": 6358,
"#itemsOut": 6358,
"#phaseSwitches": 26231,
"execTime": "83.0049ms",
"kernTime": "779.1156ms",
"servTime": "16.2950853s"
},
"keyspace": "Documents",
"namespace": "default",
"#time_normal": "00:16.3780",
"#time_absolute": 16.3780902
},
{
"#operator": "Sequence",
"#stats": {
"#phaseSwitches": 1
},
"~children": [
{
"#operator": "Filter",
"#stats": {
"#itemsIn": 6358,
"#itemsOut": 65,
"#phaseSwitches": 12849,
"execTime": "15.4049451s",
"kernTime": "1.7742639s"
},
"condition": "((((((((`Documents`.`Status`) in [0, 1, 2, 3, 4, 5]) and any `wrd` in (`Documents`.`DeliveryTargetCodes`) satisfies (`wrd` in [\"web3__1\"]) end) and (\"2000-01-01T00:00:00\" <= (`Documents`.`LastUpdatedOn`))) and any `wrd` in split(lower(((((ifmissingornull((`Documents`.`Body`), \"\") || \" \") || ifmissingornull((`Documents`.`Title`), \"\")) || \" \") || ifmissingornull((`Documents`.`StandFirst`), \" \")))) satisfies (`wrd` in [\"article\"]) end) and ((`Documents`.`ContentType`) in [0, 1, 2])) and ((`Documents`.`IsLatestVersion`) = true)) and ((`Documents`.`Deleted`) = false))",
"#time_normal": "00:15.4049",
#time_absolute": 15.4049451
},
{
"#operator": "InitialGroup",
"#stats": {
"#itemsIn": 65,
"#itemsOut": 1,
"#phaseSwitches": 135,
"kernTime": "17.179209s"
},
"aggregates": [
"count(1)"
],
"group_keys": []
}
]
},
{
"#operator": "IntermediateGroup",
"#stats": {
"#itemsIn": 1,
"#itemsOut": 1,
"#phaseSwitches": 7,
"kernTime": "17.179209s"
},
"aggregates": [
"count(1)"
],
"group_keys": []
},
{
"#operator": "FinalGroup",
"#stats": {
"#itemsIn": 1,
"#itemsOut": 1,
"#phaseSwitches": 7,
"kernTime": "17.179209s"
},
"aggregates": [
"count(1)"
],
"group_keys": []
},
{
"#operator": "Sequence",
"#stats": {
"#phaseSwitches": 1
},
"~children": [
{
"#operator": "InitialProject",
"#stats": {
"#itemsIn": 1,
"#itemsOut": 1,
"#phaseSwitches": 8,
"kernTime": "17.179209s"
},
"result_terms": [
{
"as": "Total",
"expr": "count(1)"
}
]
},
{
"#operator": "FinalProject",
"#stats": {
"#itemsIn": 1,
"#itemsOut": 1,
"#phaseSwitches": 4
}
}
]
}
]
},
"#time_normal": "00:00.1430",
"#time_absolute": 0.1430067
},
{
"#operator": "Stream",
"#stats": {
"#itemsIn": 1,
"#itemsOut": 1,
"#phaseSwitches": 7,
"kernTime": "17.3222157s"
}
}
],
}