Query time 0.00188
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "98.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "18.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": 18,
"rows_produced_per_join": 18,
"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 (1930,795,1158,1221,336,571,1147,1307,1450,1676,1768,1945)))",
"cost_info": {
"read_cost": "33.61",
"eval_cost": "3.60",
"prefix_cost": "37.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": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "18.00",
"eval_cost": "3.60",
"prefix_cost": "58.81",
"data_read_per_join": "13K"
},
"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": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "18.00",
"eval_cost": "3.60",
"prefix_cost": "80.41",
"data_read_per_join": "10K"
},
"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 |
Four_seasons_meat_.gif |
1165 |
771 |
N |
1893 |
571 |
product |
2011 |
M |
0 |
|
2011 |
0 |
405g_Tiffany_Delight_Butter_Cookies.jpg |
340 |
340 |
N |
2118 |
795 |
product |
2236 |
M |
0 |
|
2236 |
0 |
Bella_Autumn_Royal_Sweet_Red_Wine_13_Ac_750ml.jpg |
850 |
850 |
N |
2500 |
1147 |
product |
2618 |
M |
0 |
Bella Autumn Royal Sweet Red Wine - 13% Ac – 750ml |
2618 |
0 |
750ml_Moet_Chandon_Imperial.jpg |
450 |
450 |
N |
2511 |
1158 |
product |
2629 |
M |
0 |
750ml Moet & Chandon Imperial |
2629 |
0 |
4th_Street_Sweet_White_Wine_750ml.jpg |
850 |
850 |
N |
2574 |
1221 |
product |
2692 |
M |
0 |
4th Street Sweet White Wine - 750ml |
2692 |
0 |
Rosemount_Cabernet_Sauvignon_75cl.jpg |
385 |
385 |
N |
2666 |
1307 |
product |
2784 |
M |
0 |
Rosemount Cabernet Sauvignon 75cl |
2784 |
0 |
SKITTLES_STD_BAR_55G.jpg |
458 |
458 |
N |
2813 |
1450 |
product |
2931 |
M |
0 |
SKITTLES STD BAR 55G |
2931 |
0 |
Nivea_energy_fresh_women_spray_150ml.jpg |
1999 |
2000 |
N |
3086 |
1676 |
product |
3204 |
M |
0 |
Nivea energy fresh women spray 150ml |
3204 |
0 |
Dabur_Vatika_Olive_Enriched_Hair_Oil_300_Ml.jpg |
550 |
550 |
N |
3181 |
1768 |
product |
3299 |
M |
0 |
Dabur Vatika Olive Enriched Hair Oil 300 Ml |
3299 |
0 |
Basket_of_Pink_Roses.jpg |
434 |
385 |
N |
3342 |
1930 |
product |
3460 |
M |
0 |
|
3460 |
0 |
wadel.jpg |
500 |
240 |
N |
3410 |
1945 |
product |
3528 |
M |
0 |
Wedel White Chocolate 100g |
3528 |