Query time 0.00102
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "69.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "12.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": 12,
"rows_produced_per_join": 12,
"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 (383,795,856,861,336,614,622,631,854,862,864,866)))",
"cost_info": {
"read_cost": "26.41",
"eval_cost": "2.40",
"prefix_cost": "28.81",
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "2.40",
"prefix_cost": "43.21",
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "2.40",
"prefix_cost": "57.61",
"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 |
Cadbury_Chocolate.jpg |
2000 |
2000 |
N |
1622 |
336 |
product |
1740 |
M |
0 |
|
1740 |
0 |
Mixed_Roses_Bouquet.jpg |
300 |
300 |
N |
1680 |
383 |
product |
1798 |
M |
0 |
|
1798 |
0 |
Beef_Cubes_1kg.jpg |
600 |
600 |
N |
1937 |
614 |
product |
2055 |
M |
0 |
|
2055 |
0 |
Chicken_Breast_Boneless_1KG_.jpg |
450 |
450 |
N |
1945 |
622 |
product |
2063 |
M |
0 |
|
2063 |
0 |
Pork_Chops_Plain_1KG_.jpg |
1063 |
1063 |
N |
1954 |
631 |
product |
2072 |
M |
0 |
|
2072 |
0 |
405g_Tiffany_Delight_Butter_Cookies.jpg |
340 |
340 |
N |
2118 |
795 |
product |
2236 |
M |
0 |
|
2236 |
0 |
Celery_Bundle.jpg |
500 |
349 |
N |
2191 |
854 |
product |
2309 |
M |
0 |
|
2309 |
0 |
Carrots_Dozen.jpg |
500 |
333 |
N |
2193 |
856 |
product |
2311 |
M |
0 |
Carrots 1kg |
2311 |
0 |
Onions_bundle.jpg |
470 |
500 |
N |
2198 |
861 |
product |
2316 |
M |
0 |
Onions kg |
2316 |
0 |
Green_pepper_Dozen.jpg |
500 |
375 |
N |
2199 |
862 |
product |
2317 |
M |
0 |
|
2317 |
0 |
White_mushrooms_obutiko_Bundle.jpg |
500 |
500 |
N |
2201 |
864 |
product |
2319 |
M |
0 |
|
2319 |
0 |
Beans_Kg.jpg |
500 |
329 |
N |
2203 |
866 |
product |
2321 |
M |
0 |
|
2321 |