you can find the query i.e executed, explanation for the query and also cbq metric. Kindly provide some inputs to resolve this.
Time taken to complete execution of the below query is 9 to 12 seconds
select idtDGVendor,BusinessName,address1,address2,city,state,Zip,Lat,Long,Lat_Radians,Long_Radians from VendorDetails USE INDEX (index_all USING GSI) WHERE idtDGVendor >= 1 and idtDGVendor <= 5000
Explain :
[
{
"#operator": “Sequence”,
"~children": [
{
"#operator": “IndexScan”,
“covers”: [
“cover((meta(VendorDetails
).id
))”,
“cover((VendorDetails
.idtDGVendor
))”,
“cover((VendorDetails
.BusinessName
))”,
“cover((VendorDetails
.address1
))”,
“cover((VendorDetails
.address2
))”,
“cover((VendorDetails
.city
))”,
“cover((VendorDetails
.state
))”,
“cover((VendorDetails
.Zip
))”,
“cover((VendorDetails
.Lat
))”,
“cover((VendorDetails
.Long
))”,
“cover((VendorDetails
.Lat_Radians
))”,
“cover((VendorDetails
.Long_Radians
))”
],
“index”: “index_all”,
“keyspace”: “VendorDetails”,
“namespace”: “default”,
“spans”: [
{
“Range”: {
“High”: [
“successor(5000)”
],
“Inclusion”: 1,
“Low”: [
“1”
]
}
}
],
“using”: “gsi”
},
{
"#operator": “Parallel”,
"~child": {
"#operator": “Sequence”,
"~children": [
{
"#operator": “Filter”,
“condition”: “((1 <= cover((VendorDetails
.idtDGVendor
))) and (cover((VendorDetails
.idtDGVendor
)) <= 5000))”
},
{
"#operator": “InitialProject”,
“result_terms”: [
{
“expr”: “cover((VendorDetails
.idtDGVendor
))”
},
{
“expr”: “cover((VendorDetails
.BusinessName
))”
},
{
“expr”: “cover((VendorDetails
.address1
))”
},
{
“expr”: “cover((VendorDetails
.address2
))”
},
{
“expr”: “cover((VendorDetails
.city
))”
},
{
“expr”: “cover((VendorDetails
.state
))”
},
{
“expr”: “cover((VendorDetails
.Zip
))”
},
{
“expr”: “cover((VendorDetails
.Lat
))”
},
{
“expr”: “cover((VendorDetails
.Long
))”
},
{
“expr”: “cover((VendorDetails
.Lat_Radians
))”
},
{
“expr”: “cover((VendorDetails
.Long_Radians
))”
}
]
},
{
"#operator": “FinalProject”
}
]
}
}
]
}
]
cbq metrics :
“status”: “success”,
“metrics”: {
“elapsedTime”: “9.6259926s”,
“executionTime”: “9.6259926s”,
“resultCount”: 5000,
“resultSize”: 1802282
}