@cihangirb @simonbasle
I see an issue with the partitioned index, , I have created 2 partitions on 2 different nodes.but the explain plan shows only one is in use. Do you know the reason? I have checked the console and I only see IX_TYPE_ID_PART2 created where the other no. I am sure I have created both; does the IX_TYPE_ID_PART2 replaced the IX_TYPE_ID_PART1?
CREATE INDEX IX_TYPE_PART1 ON product(Type) WHERE Type=“product” USING GSI WITH {“nodes”:“10.71.52.142:8091”};
CREATE INDEX IX_TYPE_ID_PART2 ON product(Type) WHERE Type=“product” USING GSI WITH {“nodes”:“10.71.52.137:8091”};
cbq> EXPLAIN select pid, REPLACE(REPLACE(pName, “,”, “:”),“\t”," ") AS pName from product
WHERE Type=“product”;
{
“requestID”: “674e0931-cb59-4ab9-ac36-b430f26a695d”,
“signature”: “json”,
“results”: [
{
“#operator”: “Sequence”,
“~children”: [
{
“#operator”: “IndexScan”,
“index”: “IX_TYPE_PART1”,
“keyspace”: “product”,
“limit”: 9.223372036854776e+18,
“namespace”: “default”,
“spans”: [
{
“Range”: {
“High”: [
“"product"”
],
“Inclusion”: 3,
“Low”: [
“"product"”
]
},
“Seek”: null
}
],
“using”: “gsi”
},
{
“#operator”: “Parallel”,
“~child”: {
“#operator”: “Sequence”,
“~children”: [
{
“#operator”: “Fetch”,
“keyspace”: “product”,
“namespace”: “default”
},
{
“#operator”: “Filter”,
“condition”: “((product
.Type
) = "product")”
},
{
“#operator”: “InitialProject”,
“result_terms”: [
{
“expr”: “(product
.pid
)”
},
{
“as”: “pName”,
“expr”: “replace(replace((product
.pName
), ",", ":"), "\t", " ")”
}
]
},
{
“#operator”: “FinalProject”
}
]
}
}
]
}
],
“status”: “success”,
“metrics”: {
“elapsedTime”: “5.227177ms”,
“executionTime”: “4.511846ms”,
“resultCount”: 1,
“resultSize”: 2340
}
}
cbq>