EXPLAIN SELECT Ctry FROM default WHERE _type='ip2c' AND IPFrom <= 3627730286 AND IPTo >= 3627730286 LIMIT 1
[
{
"plan": {
"#operator": "Sequence",
"~children": [
{
"#operator": "Sequence",
"~children": [
{
"#operator": "IndexScan",
"index": "ip2c_idx",
"index_id": "a3c9181d02b34c43",
"keyspace": "default",
"namespace": "default",
"spans": [
{
"Range": {
"High": [
"\"ip2c\"",
"successor(3627730286)"
],
"Inclusion": 0,
"Low": [
"\"ip2c\"",
"null",
"3627730286"
]
}
}
],
"using": "gsi"
},
{
"#operator": "Fetch",
"keyspace": "default",
"namespace": "default"
},
{
"#operator": "Parallel",
"~child": {
"#operator": "Sequence",
"~children": [
{
"#operator": "Filter",
"condition": "((((`default`.`_type`) = \"ip2c\") and ((`default`.`IPFrom`) <= 3627730286)) and (3627730286 <= (`default`.`IPTo`)))"
},
{
"#operator": "InitialProject",
"result_terms": [
{
"expr": "(`default`.`Ctry`)"
}
]
},
{
"#operator": "FinalProject"
}
]
}
}
]
},
{
"#operator": "Limit",
"expr": "1"
}
]
},
"text": "SELECT Ctry FROM default WHERE _type='ip2c' AND IPFrom <= 3627730286 AND IPTo >= 3627730286 LIMIT 1"
}
]
EXPLAIN SELECT Ctry FROM default WHERE _type='ip2c' AND IPFrom <= 3627730286 LIMIT 1
[
{
"plan": {
"#operator": "Sequence",
"~children": [
{
"#operator": "Sequence",
"~children": [
{
"#operator": "IndexScan",
"index": "ip2c_idx",
"index_id": "a3c9181d02b34c43",
"keyspace": "default",
"limit": "1",
"namespace": "default",
"spans": [
{
"Range": {
"High": [
"\"ip2c\"",
"successor(3627730286)"
],
"Inclusion": 0,
"Low": [
"\"ip2c\"",
"null"
]
}
}
],
"using": "gsi"
},
{
"#operator": "Fetch",
"keyspace": "default",
"namespace": "default"
},
{
"#operator": "Parallel",
"~child": {
"#operator": "Sequence",
"~children": [
{
"#operator": "Filter",
"condition": "(((`default`.`_type`) = \"ip2c\") and ((`default`.`IPFrom`) <= 3627730286))"
},
{
"#operator": "InitialProject",
"result_terms": [
{
"expr": "(`default`.`Ctry`)"
}
]
},
{
"#operator": "FinalProject"
}
]
}
}
]
},
{
"#operator": "Limit",
"expr": "1"
}
]
},
"text": "SELECT Ctry FROM default WHERE _type='ip2c' AND IPFrom <= 3627730286 LIMIT 1"
}
]