That seemed to do the trick! Getting satisfactory timings with that query. Thank you very much!
{
“#operator”: “Sequence”,
“#stats”: {
“#phaseSwitches”: 1,
“execTime”: “2.6µs”
},
“~children”: [
{
“#operator”: “Authorize”,
“#stats”: {
“#phaseSwitches”: 3,
“execTime”: “3.7µs”,
“servTime”: “688.392µs”
},
“privileges”: {
“List”: [
{
“Target”: “default:production_statedata”,
“Priv”: 7
}
]
},
“~child”: {
“#operator”: “Sequence”,
“#stats”: {
“#phaseSwitches”: 1,
“execTime”: “4.2µs”
},
“~children”: [
{
“#operator”: “IndexScan3”,
“#stats”: {
“#itemsOut”: 8,
“#phaseSwitches”: 35,
“execTime”: “40.499µs”,
“kernTime”: “5.6µs”,
“servTime”: “4.395556157s”
},
“covers”: [
“cover ((production_statedata
.Type
))”,
“cover ((production_statedata
.UUID
))”,
“cover ((meta(production_statedata
).id
))”,
“cover (max(cover ((production_statedata
.UUID
))))”
],
“filter_covers”: {
“cover (((production_statedata
.UUID
) < ""))”: true,
“cover ((true < (production_statedata
.UUID
)))”: true,
“cover (is_number((production_statedata
.UUID
)))”: true
},
“index”: “production_statedata_uuicountermax”,
“index_group_aggs”: {
“aggregates”: [
{
“aggregate”: “MAX”,
“depends”: [
1
],
“expr”: “cover ((production_statedata
.UUID
))”,
“id”: 3,
“keypos”: 1
}
],
“depends”: [
1
],
“partial”: true
},
“index_id”: “6642c0c9ac59277d”,
“index_projection”: {
“entry_keys”: [
3
]
},
“keyspace”: “production_statedata”,
“namespace”: “default”,
“spans”: [
{
“exact”: true,
“range”: [
{
“high”: “"Foo"”,
“inclusion”: 3,
“low”: “"Foo"”
},
{
“high”: “""”,
“inclusion”: 0,
“low”: “true”
}
]
}
],
“using”: “gsi”,
“#time_normal”: “00:04.3955”,
“#time_absolute”: 4.3955966559999995
},
{
“#operator”: “InitialGroup”,
“#stats”: {
“#itemsIn”: 8,
“#itemsOut”: 1,
“#phaseSwitches”: 21,
“execTime”: “80.199µs”,
“kernTime”: “4.395625855s”
},
“aggregates”: [
“max(cover (max(cover ((production_statedata
.UUID
)))))”
],
“group_keys”: ,
“#time_normal”: “00:00.0000”,
“#time_absolute”: 0.000080199
},
{
“#operator”: “IntermediateGroup”,
“#stats”: {
“#itemsIn”: 1,
“#itemsOut”: 1,
“#phaseSwitches”: 7,
“execTime”: “5.5µs”,
“kernTime”: “4.395712954s”
},
“aggregates”: [
“max(cover (max(cover ((production_statedata
.UUID
)))))”
],
“group_keys”: ,
“#time_normal”: “00:00.0000”,
“#time_absolute”: 0.0000055
},
{
“#operator”: “FinalGroup”,
“#stats”: {
“#itemsIn”: 1,
“#itemsOut”: 1,
“#phaseSwitches”: 7,
“execTime”: “20.9µs”,
“kernTime”: “4.395723954s”
},
“aggregates”: [
“max(cover (max(cover ((production_statedata
.UUID
)))))”
],
“group_keys”: ,
“#time_normal”: “00:00.0000”,
“#time_absolute”: 0.0000209
},
{
“#operator”: “Sequence”,
“#stats”: {
“#phaseSwitches”: 1,
“execTime”: “1.8µs”
},
“~children”: [
{
“#operator”: “InitialProject”,
“#stats”: {
“#itemsIn”: 1,
“#itemsOut”: 1,
“#phaseSwitches”: 8,
“execTime”: “21.6µs”,
“kernTime”: “4.395749454s”
},
“result_terms”: [
{
“as”: “max”,
“expr”: “max(cover (max(cover ((production_statedata
.UUID
)))))”
}
],
“#time_normal”: “00:00.0000”,
“#time_absolute”: 0.0000216
},
{
“#operator”: “FinalProject”,
“#stats”: {
“#itemsIn”: 1,
“#itemsOut”: 1,
“#phaseSwitches”: 4,
“execTime”: “2.9µs”,
“kernTime”: “1.5µs”
},
“#time_normal”: “00:00.0000”,
“#time_absolute”: 0.0000028999999999999998
}
],
“#time_normal”: “00:00.0000”,
“#time_absolute”: 0.0000018000000000000001
}
],
“#time_normal”: “00:00.0000”,
“#time_absolute”: 0.0000042000000000000004
},
“#time_normal”: “00:00.0006”,
“#time_absolute”: 0.0006920920000000001
},
{
“#operator”: “Stream”,
“#stats”: {
“#itemsIn”: 1,
“#itemsOut”: 1,
“#phaseSwitches”: 7,
“execTime”: “5.2µs”,
“kernTime”: “4.396517445s”
},
“#time_normal”: “00:00.0000”,
“#time_absolute”: 0.0000052
}
],
“~versions”: [
“2.0.0-N1QL”,
“5.5.0-2958-enterprise”
],
“#time_normal”: “00:00.0000”,
“#time_absolute”: 0.0000026
}