Query time 0.01719
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "45.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "8.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 8,
"rows_produced_per_join": 8,
"filtered": "100.00",
"index_condition": "((`eshopuga_upgr_4122`.`cscart_images_links`.`object_type` = 'product') and (`eshopuga_upgr_4122`.`cscart_images_links`.`type` = 'M') and (`eshopuga_upgr_4122`.`cscart_images_links`.`object_id` in (787,779,780,922,931,1049,1949)))",
"cost_info": {
"read_cost": "16.61",
"eval_cost": "1.60",
"prefix_cost": "18.21",
"data_read_per_join": "768"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "cscart_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"eshopuga_upgr_4122.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.00",
"eval_cost": "1.60",
"prefix_cost": "27.81",
"data_read_per_join": "6K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(cscart_images), (`eshopuga_upgr_4122`.`cscart_images_links`.`detailed_id` = `eshopuga_upgr_4122`.`cscart_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "cscart_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"eshopuga_upgr_4122.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.00",
"eval_cost": "1.60",
"prefix_cost": "37.41",
"data_read_per_join": "4K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`eshopuga_upgr_4122`.`cscart_common_descriptions`.`object_id` = `eshopuga_upgr_4122`.`cscart_images`.`image_id`), true)"
}
}
]
}
}
}
Result
image_id |
image_path |
image_x |
image_y |
is_high_res |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
0 |
Bounty_Chocolate_2_in_1_Bar_28_5gms.jpg |
340 |
340 |
N |
2102 |
779 |
product |
2220 |
M |
0 |
|
2220 |
0 |
Mars_Chocolate_Bar_51g.jpg |
1000 |
353 |
N |
2103 |
780 |
product |
2221 |
M |
0 |
|
2221 |
0 |
Snickers_Chocolate_Bar_50g.JPG |
500 |
215 |
N |
2110 |
787 |
product |
2228 |
M |
0 |
|
2228 |
0 |
DELIGHTED.jpg |
347 |
350 |
N |
2261 |
922 |
product |
2379 |
M |
0 |
|
2379 |
0 |
LOVE_ME.jpg |
232 |
218 |
N |
2270 |
931 |
product |
2388 |
M |
0 |
|
2388 |
0 |
Tifany_Eclairs_700g.jpg |
375 |
375 |
N |
2403 |
1049 |
product |
2521 |
M |
0 |
Tifany Eclairs 700g |
2521 |
0 |
Wedel_Dark_Chocolate_100g.jpg |
522 |
236 |
N |
3368 |
1949 |
product |
3486 |
M |
0 |
Wedel Dark Chocolate (100g |
3486 |