{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1.41"
},
"nested_loop": [
{
"table": {
"table_name": "storefronts",
"access_type": "index",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"storefront_id"
],
"key_length": "4",
"rows_examined_per_scan": 2,
"rows_produced_per_join": 2,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.51",
"eval_cost": "0.20",
"prefix_cost": "0.71",
"data_read_per_join": "4K"
},
"used_columns": [
"storefront_id"
]
}
},
{
"table": {
"table_name": "currencies",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"idx_storefront_id"
],
"key": "PRIMARY",
"used_key_parts": [
"storefront_id",
"currency_id"
],
"key_length": "8",
"ref": [
"test_uchur_k.storefronts.storefront_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.50",
"eval_cost": "0.20",
"prefix_cost": "1.41",
"data_read_per_join": "32"
},
"used_columns": [
"storefront_id",
"currency_id"
],
"attached_condition": "(`test_uchur_k`.`storefronts`.`storefront_id` = `test_uchur_k`.`currencies`.`storefront_id`)"
}
}
]
}
}
| COUNT(DISTINCT storefronts.storefront_id) |
|---|
| 2 |