Query time 0.00117
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "57.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "10.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": 10,
"rows_produced_per_join": 10,
"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 (322,779,780,787,566,578,1049,1226,1939)))",
"cost_info": {
"read_cost": "21.01",
"eval_cost": "2.00",
"prefix_cost": "23.01",
"data_read_per_join": "960"
},
"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": 10,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.00",
"eval_cost": "2.00",
"prefix_cost": "35.01",
"data_read_per_join": "7K"
},
"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": 10,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.00",
"eval_cost": "2.00",
"prefix_cost": "47.01",
"data_read_per_join": "5K"
},
"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 |
Full_of_Yello_Wishes.jpg |
350 |
350 |
N |
1600 |
322 |
product |
1718 |
M |
0 |
|
1718 |
0 |
Hawaiian.png |
1024 |
579 |
N |
1888 |
566 |
product |
2006 |
M |
0 |
|
2006 |
0 |
Barbeque_steak.jpg |
825 |
625 |
N |
1900 |
578 |
product |
2018 |
M |
0 |
|
2018 |
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 |
Tifany_Eclairs_700g.jpg |
375 |
375 |
N |
2403 |
1049 |
product |
2521 |
M |
0 |
Tifany Eclairs 700g |
2521 |
0 |
Bella_Passion_Sweet_Red_Wine_13_Alc_750ml.jpg |
850 |
850 |
N |
2579 |
1226 |
product |
2697 |
M |
0 |
Bella Passion Sweet Red Wine - 13% Alc – 750ml |
2697 |
0 |
Cadbury_Dairy_Milk_Fruit_Nut_Chocolate.jpg |
800 |
600 |
N |
3358 |
1939 |
product |
3476 |
M |
0 |
Cadbury Dairy Milk Fruit & Nut Chocolate |
3476 |