Query time 0.00108
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "74.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "13.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": 13,
"rows_produced_per_join": 13,
"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 (795,796,856,568,571,673,677,871,873,876,1082,1496)))",
"cost_info": {
"read_cost": "27.61",
"eval_cost": "2.60",
"prefix_cost": "30.21",
"data_read_per_join": "1K"
},
"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": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "13.00",
"eval_cost": "2.60",
"prefix_cost": "45.81",
"data_read_per_join": "9K"
},
"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": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "13.00",
"eval_cost": "2.60",
"prefix_cost": "61.41",
"data_read_per_join": "7K"
},
"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 |
Vegetarian.png |
553 |
368 |
N |
1890 |
568 |
product |
2008 |
M |
0 |
|
2008 |
0 |
Four_seasons_meat_.gif |
1165 |
771 |
N |
1893 |
571 |
product |
2011 |
M |
0 |
|
2011 |
0 |
Yellow_Yolk_Eggs_Tray_of_30_.jpg |
1574 |
1420 |
N |
1996 |
673 |
product |
2114 |
M |
0 |
|
2114 |
0 |
Brookside_Farm_Fresh_500ML.jpg |
334 |
446 |
N |
2000 |
677 |
product |
2118 |
M |
0 |
|
2118 |
0 |
405g_Tiffany_Delight_Butter_Cookies.jpg |
340 |
340 |
N |
2118 |
795 |
product |
2236 |
M |
0 |
|
2236 |
0 |
Heinz_Baked_Beans_in_Tomato_Sauce_415g.jpg |
645 |
954 |
N |
2119 |
796 |
product |
2237 |
M |
0 |
|
2237 |
0 |
Carrots_Dozen.jpg |
500 |
333 |
N |
2193 |
856 |
product |
2311 |
M |
0 |
Carrots 1kg |
2311 |
0 |
Apple_Piece.jpg |
538 |
358 |
N |
2208 |
871 |
product |
2326 |
M |
0 |
|
2326 |
0 |
Watermelon_Piece.jpg |
700 |
466 |
N |
2210 |
873 |
product |
2328 |
M |
0 |
|
2328 |
0 |
Small_bananas_Bunch.jpg |
600 |
600 |
N |
2213 |
876 |
product |
2331 |
M |
0 |
|
2331 |
0 |
Rwenzori_Pure_Natural_Mineral_Water_Bottle_18_7Ltr.jpg |
850 |
850 |
N |
2436 |
1082 |
product |
2554 |
M |
0 |
Rwenzori Pure Natural Mineral Water Bottle-18.7Ltr |
2554 |
0 |
Pure_Heaven_5_citrus_juices_drink_1_litre.jpg |
600 |
1065 |
N |
2859 |
1496 |
product |
2977 |
M |
0 |
Pure Heaven 5 citrus juices drink 1 litre |
2977 |