Query time 0.00108
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.10439544,
"filesort": {
"sort_key": "cscart_product_feature_variants.position, cscart_product_feature_variant_descriptions.variant",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_product_feature_variants",
"access_type": "range",
"possible_keys": ["feature_id"],
"key": "feature_id",
"key_length": "3",
"used_key_parts": ["feature_id"],
"loops": 1,
"rows": 22,
"cost": 0.02839624,
"filtered": 100,
"index_condition": "cscart_product_feature_variants.feature_id in (549,548)"
}
},
{
"table": {
"table_name": "cscart_product_feature_variant_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": [
"u985510652_ecartify_abhi.cscart_product_feature_variants.variant_id",
"const"
],
"loops": 22,
"rows": 1,
"cost": 0.03524248,
"filtered": 100,
"attached_condition": "trigcond(cscart_product_feature_variant_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_product_features_values",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id",
"wdbi_product_id_lang_code_3bbd89f7d0cc"
],
"key": "variant_id",
"key_length": "15",
"used_key_parts": [
"variant_id",
"feature_id",
"product_id",
"lang_code"
],
"ref": [
"u985510652_ecartify_abhi.cscart_product_feature_variants.variant_id",
"u985510652_ecartify_abhi.cscart_product_feature_variants.feature_id",
"const",
"const"
],
"loops": 22,
"rows": 1,
"cost": 0.03725931,
"filtered": 5.44817e-5,
"attached_condition": "trigcond(cscart_product_features_values.lang_code = 'en')",
"using_index": true
}
},
{
"table": {
"table_name": "cscart_product_features",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": [
"u985510652_ecartify_abhi.cscart_product_feature_variants.feature_id"
],
"loops": 1,
"rows": 1,
"cost": 0.00171364,
"filtered": 100
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": [
"u985510652_ecartify_abhi.cscart_product_feature_variants.variant_id",
"const",
"const",
"const"
],
"loops": 1,
"rows": 1,
"cost": 0.00178377,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'e' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
}
}
]
}
}
}
}
Result
| variant |
variant_id |
feature_id |
selected |
feature_type |
seo_name |
seo_path |
| Cotton |
2496 |
549 |
|
S |
|
|
| L |
2484 |
548 |
|
S |
|
|
| Leather |
2494 |
549 |
|
S |
|
|
| M |
2491 |
548 |
|
S |
|
|
| Metal |
2493 |
549 |
|
S |
|
|
| Pink |
2474 |
549 |
2474 |
S |
|
|
| Plastic |
2495 |
549 |
|
S |
|
|
| Red |
2472 |
549 |
|
S |
|
|
| S |
2482 |
548 |
|
S |
|
|
| Sky Blue |
2475 |
549 |
|
S |
|
|
| Wood |
2492 |
549 |
|
S |
|
|
| XL |
2483 |
548 |
|
S |
|
|
| Yellow |
2473 |
549 |
|
S |
|
|
| Green |
1198 |
549 |
|
S |
|
|
| Small |
1193 |
548 |
|
S |
|
|
| Blue |
1199 |
549 |
|
S |
|
|
| Large |
1194 |
548 |
1194 |
S |
|
|
| Black |
1200 |
549 |
|
S |
black |
|
| Medium |
1195 |
548 |
|
S |
|
|
| White |
1201 |
549 |
|
S |
|
|
| X Large |
1197 |
548 |
|
S |
|
|
| XX Large |
1196 |
548 |
|
S |
|
|