Query time 0.00184
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2.26"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"grouping_operation": {
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_product_feature_variants",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"feature_id",
"position"
],
"key": "feature_id",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.83",
"eval_cost": "0.10",
"prefix_cost": "0.93",
"data_read_per_join": "776"
},
"used_columns": [
"variant_id",
"feature_id",
"url",
"position"
]
}
},
{
"table": {
"table_name": "cscart_product_features_values",
"access_type": "ref",
"possible_keys": [
"variant_id",
"lang_code",
"product_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 0,
"filtered": "2.50",
"using_index": true,
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.01",
"prefix_cost": "2.13",
"data_read_per_join": "39"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`maniamall_cscart`.`cscart_product_features_values`.`variant_id` = `maniamall_cscart`.`cscart_product_feature_variants`.`variant_id`) and (`maniamall_cscart`.`cscart_product_features_values`.`lang_code` = 'ro'))"
}
},
{
"table": {
"table_name": "cscart_product_features",
"access_type": "const",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.01",
"eval_cost": "0.01",
"prefix_cost": "2.15",
"data_read_per_join": "7"
},
"used_columns": [
"feature_id",
"feature_type"
]
}
},
{
"table": {
"table_name": "cscart_product_feature_variant_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"maniamall_cscart.cscart_product_feature_variants.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.01",
"prefix_cost": "2.20",
"data_read_per_join": "154"
},
"used_columns": [
"variant_id",
"variant",
"description",
"page_title",
"meta_keywords",
"meta_description",
"lang_code"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "dispatch",
"used_key_parts": [
"dispatch",
"object_id",
"type",
"lang_code"
],
"key_length": "206",
"ref": [
"const",
"maniamall_cscart.cscart_product_feature_variants.variant_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"index_condition": "<if>(is_not_null_compl(cscart_seo_names), ((`maniamall_cscart`.`cscart_seo_names`.`company_id` = 1) or (`maniamall_cscart`.`cscart_seo_names`.`company_id` = 0)), true)",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.01",
"prefix_cost": "2.26",
"data_read_per_join": "86"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
}
Result
| variant_id |
variant |
description |
page_title |
meta_keywords |
meta_description |
lang_code |
feature_id |
url |
position |
selected |
feature_type |
seo_name |
seo_path |
| 4164 |
|
|
|
|
|
ro |
61 |
|
0 |
4164 |
M |
|
|