Thats what I figured, but in this case its not load balancing as its hitting both index nodes for the same query.
EXPLAIN SELECT id FROM test WHERE type = 1 AND value_1 <> 10 AND
(value_2 = 0 OR value_2 IS MISSING OR value_2 IS NULL) AND
ANY item_1 IN value_3 SATISFIES item_1.id = 5 AND ANY inner_item IN ARRAY_FLATTEN(OBJECT_VALUES(item_1.`values`), 1) SATISFIES inner_item IN ["random", 22] END END AND
ANY item_2 IN value_3 SATISFIES item_2.id = 6 AND ANY inner_item_2 IN ARRAY_FLATTEN(OBJECT_VALUES(item_2.`values`), 1) SATISFIES inner_item_2 IN ["random2", 44] END END
LIMIT 1
{
"#operator": "IntersectScan",
"scans": [
{
"#operator": "DistinctScan",
"scan": {
"#operator": "IndexScan",
"index": "test1-array-item_1-d4b05c",
"index_id": "bdab37791345a002",
"keyspace": "test",
"namespace": "default",
"spans": [
{
"Range": {
"High": [
"5"
],
"Inclusion": 3,
"Low": [
"5"
]
}
}
],
"using": "gsi"
}
},
{
"#operator": "DistinctScan",
"scan": {
"#operator": "IndexScan",
"index": "test1-array-item_1-ce87b6",
"index_id": "4ff7e9e18cd7c19a",
"keyspace": "test",
"namespace": "default",
"spans": [
{
"Range": {
"High": [
"5"
],
"Inclusion": 3,
"Low": [
"5"
]
}
}
],
"using": "gsi"
}
},
{
"#operator": "DistinctScan",
"scan": {
"#operator": "IndexScan",
"index": "test1-array-item_2-d4b05c",
"index_id": "eb3ba84a3bf127a1",
"keyspace": "test",
"namespace": "default",
"spans": [
{
"Range": {
"High": [
"6"
],
"Inclusion": 3,
"Low": [
"6"
]
}
}
],
"using": "gsi"
}
},
{
"#operator": "DistinctScan",
"scan": {
"#operator": "IndexScan",
"index": "test1-array-item_2-ce87b6",
"index_id": "1e8589774e6c44b9",
"keyspace": "test",
"namespace": "default",
"spans": [
{
"Range": {
"High": [
"6"
],
"Inclusion": 3,
"Low": [
"6"
]
}
}
],
"using": "gsi"
}
},
{
"#operator": "DistinctScan",
"scan": {
"#operator": "IndexScan",
"index": "test1-value_1-value_4-d4b05c",
"index_id": "57adbb54fff242ea",
"keyspace": "test",
"namespace": "default",
"spans": [
{
"Range": {
"High": [
"10"
],
"Inclusion": 0,
"Low": [
"null"
]
}
},
{
"Range": {
"Inclusion": 0,
"Low": [
"10"
]
}
}
],
"using": "gsi"
}
}
]
}