Query time 0.00163
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1066.65"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_product_feature_variants",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"feature_id"
],
"key": "feature_id",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 31,
"rows_produced_per_join": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.75",
"eval_cost": "3.10",
"prefix_cost": "10.85",
"data_read_per_join": "35K"
},
"used_columns": [
"variant_id",
"feature_id",
"position"
]
}
},
{
"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": [
"cscartdb.cscart_product_feature_variants.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.75",
"eval_cost": "3.10",
"prefix_cost": "21.70",
"data_read_per_join": "93K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
},
{
"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"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"key_length": "15",
"ref": [
"const",
"const",
"cscartdb.cscart_product_feature_variants.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 31,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "7.75",
"eval_cost": "3.10",
"prefix_cost": "32.55",
"data_read_per_join": "23K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
},
{
"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": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "3.10",
"prefix_cost": "35.90",
"data_read_per_join": "13K"
},
"used_columns": [
"feature_id",
"feature_type"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"cscartdb.cscart_product_feature_variants.variant_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 95,
"rows_produced_per_join": 2945,
"filtered": "100.00",
"cost_info": {
"read_cost": "736.25",
"eval_cost": "294.50",
"prefix_cost": "1066.65",
"data_read_per_join": "4M"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
}
Result
variant |
variant_id |
feature_id |
selected |
feature_type |
seo_name |
seo_path |
Tucson Bison w/Cream Bullhide (firm+soft) |
1657 |
336 |
|
S |
|
|
Cognac Bullhide w/Buttercream (firm+soft) |
1647 |
336 |
1647 |
S |
|
|
Whisky Bison w/Buttercream (med+soft) |
1661 |
336 |
|
S |
|
|
Black Latigo (firm) |
1632 |
336 |
|
S |
|
|
Brown Bridle (firm) |
1645 |
336 |
|
S |
|
|
Black w/Red Edges (firm) |
1638 |
336 |
|
S |
|
|
Pink (soft) |
1651 |
336 |
|
S |
|
|
Pink w/White Inlay (soft) |
1652 |
336 |
|
S |
|
|
Blue (soft) |
1644 |
336 |
|
S |
|
|
Ivory w/Brown (soft) |
1649 |
336 |
|
S |
|
|
Red Von Sanguine (luxury soft) |
1656 |
336 |
|
S |
|
|
Purple (soft) |
1653 |
336 |
|
S |
|
|
Bison w/Red Bullhide (super soft) |
1631 |
336 |
|
S |
|
|
Black w/Blue Inlay (soft) |
1635 |
336 |
|
S |
|
|
Black w/Pink Inlay (soft) |
1636 |
336 |
|
S |
|
|
Black w/Purple Inlay (soft) |
1637 |
336 |
|
S |
|
|
Black w/Red Inlay (soft) |
1639 |
336 |
|
S |
|
|
Blk Bullhide w/Bison (super soft) |
1640 |
336 |
|
S |
|
|
Brown on Leopard (med+soft) |
1646 |
336 |
|
S |
|
|
Blk Bullhide w/Pink Lambskin (soft+silky) |
1641 |
336 |
|
S |
|
|
Leopard on Brown (semi-firm) |
1650 |
336 |
|
S |
|
|
Blk Bullhide w/Purple Lambskin (soft+silky) |
1642 |
336 |
|
S |
|
|
Blk Bullhide w/Red Lambskin (soft+silky) |
1643 |
336 |
|
S |
|
|
Full Leopard w/Brown (med+soft) |
1648 |
336 |
|
S |
|
|
Brown w/Leopard Inlay (soft+med) |
4819 |
336 |
|
S |
|
|
Red Bullhide w/Red Lambskin (soft+silky) |
1654 |
336 |
|
S |
|
|
Black Patent (shiny) |
1633 |
336 |
|
S |
|
|
Red Patent (shiny) |
1655 |
336 |
|
S |
|
|
Black PVC (shiny) |
1634 |
336 |
|
S |
|
|
Vegan Black (smooth) |
1658 |
336 |
|
S |
|
|
Vegan Chocolate (smooth) |
1659 |
336 |
|
S |
|
|
Vegan Red (smooth) |
1660 |
336 |
|
S |
|
|