Query time 0.00120
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.43"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "1.50"
},
"nested_loop": [
{
"table": {
"table_name": "storefronts_currencies",
"access_type": "system",
"rows_examined_per_scan": 0,
"rows_produced_per_join": 1,
"filtered": "0.00",
"const_row_not_found": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.20",
"prefix_cost": "0.00",
"data_read_per_join": "16"
},
"used_columns": [
"storefront_id",
"currency_id"
]
}
},
{
"table": {
"table_name": "a",
"access_type": "ALL",
"rows_examined_per_scan": 3,
"rows_produced_per_join": 1,
"filtered": "50.00",
"cost_info": {
"read_cost": "2.33",
"eval_cost": "0.30",
"prefix_cost": "2.63",
"data_read_per_join": "156"
},
"used_columns": [
"currency_id",
"currency_code",
"after",
"symbol",
"coefficient",
"is_primary",
"position",
"decimals_separator",
"thousands_separator",
"decimals",
"status"
],
"attached_condition": "(`sachinecarter_march_setup`.`a`.`status` in ('A','H'))"
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"currency_id",
"lang_code"
],
"key_length": "9",
"ref": [
"sachinecarter_march_setup.a.currency_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.30",
"prefix_cost": "2.93",
"data_read_per_join": "1K"
},
"used_columns": [
"currency_id",
"description",
"lang_code"
]
}
}
]
}
}
}
Result
currency_id |
currency_code |
after |
symbol |
coefficient |
is_primary |
position |
decimals_separator |
thousands_separator |
decimals |
status |
description |
1 |
USD |
N |
$ |
1.00000 |
Y |
10 |
. |
, |
2 |
A |
US Dollars |
2 |
EUR |
N |
€ |
1.28000 |
N |
20 |
. |
, |
2 |
A |
Euro |
3 |
GBP |
N |
£ |
1.88000 |
N |
30 |
. |
, |
2 |
A |
GB Pound |