Query is invalid
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.86"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "HP",
"access_type": "ref",
"possible_keys": [
"idx_hp_product_id"
],
"key": "idx_hp_product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.06",
"eval_cost": "0.40",
"prefix_cost": "2.46",
"data_read_per_join": "960"
},
"used_columns": [
"id",
"product_id",
"price",
"currency",
"recycling_price_rub",
"discount_percent",
"price_difference",
"creator_id",
"created_at"
]
}
},
{
"table": {
"table_name": "CUR",
"access_type": "eq_ref",
"possible_keys": [
"currency_code"
],
"key": "currency_code",
"used_key_parts": [
"currency_code"
],
"key_length": "12",
"ref": [
"dev2.HP.currency"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.40",
"prefix_cost": "3.86",
"data_read_per_join": "384"
},
"used_columns": [
"currency_id",
"currency_code",
"price"
]
}
}
]
}
}
}