Query time 0.00068
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2.15"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "product_filters",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"filter_id"
],
"key_length": "3",
"rows_examined_per_scan": 3,
"rows_produced_per_join": 0,
"filtered": "25.00",
"cost_info": {
"read_cost": "1.29",
"eval_cost": "0.08",
"prefix_cost": "1.36",
"data_read_per_join": "48"
},
"used_columns": [
"filter_id",
"categories_path",
"feature_id",
"position",
"field_type",
"status",
"round_to",
"display_count",
"display"
],
"attached_condition": "((`goimagine`.`product_filters`.`status` = 'A') and ((`goimagine`.`product_filters`.`categories_path` = '') or (0 <> find_in_set(92,`goimagine`.`product_filters`.`categories_path`))) and (`goimagine`.`product_filters`.`filter_id` in (1,2,3)))"
}
},
{
"table": {
"table_name": "product_filter_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"filter_id",
"lang_code"
],
"key_length": "9",
"ref": [
"goimagine.product_filters.filter_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.19",
"eval_cost": "0.08",
"prefix_cost": "1.62",
"data_read_per_join": "588"
},
"used_columns": [
"filter_id",
"lang_code",
"filter"
]
}
},
{
"table": {
"table_name": "product_features",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"goimagine.product_filters.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.19",
"eval_cost": "0.08",
"prefix_cost": "1.89",
"data_read_per_join": "330"
},
"used_columns": [
"feature_id",
"filter_style",
"feature_type"
]
}
},
{
"table": {
"table_name": "product_features_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"goimagine.product_filters.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.19",
"eval_cost": "0.08",
"prefix_cost": "2.15",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"prefix",
"suffix",
"lang_code"
]
}
}
]
}
}
}
Result
| feature_id |
filter_id |
field_type |
round_to |
display |
display_count |
filter |
feature_type |
filter_style |
prefix |
suffix |
| 0 |
1 |
P |
0.01 |
Y |
10 |
Price Filter |
|
|
|
|
| 0 |
2 |
F |
0.01 |
Y |
10 |
Free Shipping |
|
|
|
|