Query time 0.00101
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "10.84"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "v",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 26,
"rows_produced_per_join": 13,
"filtered": "50.55",
"index_condition": "((`marketplace`.`v`.`lang_code` = 'es') and (`marketplace`.`v`.`feature_id` is not null))",
"cost_info": {
"read_cost": "1.84",
"eval_cost": "1.31",
"prefix_cost": "4.44",
"data_read_per_join": "10K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
]
}
},
{
"table": {
"table_name": "f",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"marketplace.v.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "9.78",
"cost_info": {
"read_cost": "3.29",
"eval_cost": "0.13",
"prefix_cost": "9.04",
"data_read_per_join": "575"
},
"used_columns": [
"feature_id",
"feature_code",
"purpose",
"feature_style",
"feature_type",
"categories_path",
"parent_id",
"display_on_product",
"display_on_catalog",
"display_on_header",
"status",
"position"
],
"attached_condition": "((`marketplace`.`f`.`status` = 'A') and (`marketplace`.`f`.`display_on_catalog` = 'Y') and ((`marketplace`.`f`.`categories_path` = '') or (0 <> find_in_set(320,`marketplace`.`f`.`categories_path`)) or (0 <> find_in_set(358,`marketplace`.`f`.`categories_path`))) and (if(`marketplace`.`f`.`parent_id`,(/* select#2 */ select `marketplace`.`df`.`status` from `marketplace`.`ushop_product_features` `df` where (`marketplace`.`df`.`feature_id` = `marketplace`.`f`.`parent_id`)),'A') = 'A') and ((`marketplace`.`v`.`variant_id` <> 0) or ((`marketplace`.`f`.`feature_type` <> 'C') and (`marketplace`.`v`.`value` <> '')) or (`marketplace`.`f`.`feature_type` = 'C') or (`marketplace`.`v`.`value_int` <> 0)))",
"attached_subqueries": [
{
"dependent": true,
"cacheable": false,
"query_block": {
"select_id": 2,
"cost_info": {
"query_cost": "0.35"
},
"table": {
"table_name": "df",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"marketplace.f.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "0.35",
"data_read_per_join": "448"
},
"used_columns": [
"feature_id",
"status"
]
}
}
}
]
}
},
{
"table": {
"table_name": "fd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"marketplace.v.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.32",
"eval_cost": "0.13",
"prefix_cost": "9.49",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"description",
"internal_name",
"full_description",
"prefix",
"suffix",
"lang_code"
]
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"marketplace.v.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.32",
"eval_cost": "0.13",
"prefix_cost": "9.94",
"data_read_per_join": "2K"
},
"used_columns": [
"variant_id",
"color",
"position",
"abt__ut2_color_style",
"abt__ut2_multicolor",
"second_color"
]
}
},
{
"table": {
"table_name": "vd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"marketplace.fv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.32",
"eval_cost": "0.13",
"prefix_cost": "10.39",
"data_read_per_join": "3K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
},
{
"table": {
"table_name": "gf",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"marketplace.f.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.32",
"eval_cost": "0.13",
"prefix_cost": "10.84",
"data_read_per_join": "575"
},
"used_columns": [
"feature_id",
"feature_type",
"position"
],
"attached_condition": "<if>(is_not_null_compl(gf), (`marketplace`.`gf`.`feature_type` = 'G'), true)"
}
}
]
}
}
}
Result
| feature_id |
value |
value_int |
variant_id |
feature_type |
internal_name |
description |
prefix |
suffix |
variant |
parent_id |
position |
gposition |
display_on_header |
display_on_catalog |
display_on_product |
feature_code |
purpose |
color |
second_color |
full_description |
feature_style |
abt__ut2_color_style |
abt__ut2_multicolor |
| 593 |
TNT |
|
0 |
T |
Accesorios incluidos |
Accesorios incluidos |
|
|
|
589 |
0 |
0 |
N |
Y |
Y |
otros_accesorios_incluidos |
describe_product |
|
|
|
text |
|
|
| 592 |
|
|
3522 |
S |
Compañía telefónica |
Compañía telefónica |
|
|
Antel |
589 |
0 |
0 |
N |
Y |
Y |
otros_compania_telefonica |
find_products |
#ffffff |
|
|
text |
default |
|
| 579 |
|
|
3275 |
S |
Con Bluetooth |
Con Bluetooth |
|
|
No |
574 |
0 |
0 |
N |
Y |
Y |
conectividad_bluetooth |
find_products |
#ffffff |
|
|
text |
default |
|
| 576 |
|
|
3268 |
S |
Con conector USB |
Con conector USB |
|
|
Sí |
574 |
0 |
0 |
N |
Y |
Y |
|
find_products |
#ffffff |
|
|
text |
default |
|
| 578 |
|
|
3272 |
S |
Con GPS |
Con GPS |
|
|
Sí |
574 |
0 |
0 |
N |
Y |
Y |
conectividad_gps |
find_products |
#ffffff |
|
|
text |
default |
|
| 580 |
|
|
3277 |
S |
Con NFC |
Con NFC |
|
|
No |
0 |
0 |
|
N |
Y |
Y |
conectividad_nfc |
find_products |
#ffffff |
|
|
text |
default |
|
| 577 |
|
|
3270 |
S |
Con Wi-Fi |
Con Wi-Fi |
|
|
Sí |
574 |
0 |
0 |
N |
Y |
Y |
conectividad_wifi |
find_products |
#ffffff |
|
|
text |
default |
|
| 590 |
|
|
3517 |
S |
Es celular de juego |
Es celular de juego |
|
|
Sí |
589 |
0 |
0 |
N |
Y |
Y |
otros_gamer |
find_products |
#ffffff |
|
|
text |
default |
|
| 591 |
|
|
3520 |
S |
Es celular robusto |
Es celular robusto |
|
|
No |
589 |
0 |
0 |
N |
Y |
Y |
otros_celular_robusto |
find_products |
#ffffff |
|
|
text |
default |
|
| 575 |
|
|
3264 |
S |
Red móvil |
Red móvil |
|
|
2G |
574 |
0 |
0 |
N |
Y |
Y |
|
find_products |
#ffffff |
|
|
text |
default |
|