Query time 0.00078
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "50.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "9.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": 9,
"rows_produced_per_join": 9,
"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 (1958,391,390,393,1934,389,388)))",
"cost_info": {
"read_cost": "17.81",
"eval_cost": "1.80",
"prefix_cost": "19.61",
"data_read_per_join": "864"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "1.80",
"prefix_cost": "30.41",
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "1.80",
"prefix_cost": "41.21",
"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 |
Splendid_Awesomeness.jpg |
420 |
490 |
N |
1685 |
388 |
product |
1803 |
M |
0 |
|
1803 |
0 |
Simply_Yellow.jpg |
640 |
640 |
N |
1686 |
389 |
product |
1804 |
M |
0 |
|
1804 |
0 |
FULL_OF_JOY.jpg |
1680 |
1050 |
N |
1687 |
390 |
product |
1805 |
M |
0 |
|
1805 |
0 |
HAPPY_Roses.jpg |
458 |
458 |
N |
1688 |
391 |
product |
1806 |
M |
0 |
|
1806 |
0 |
LONG_STEM_WHITE_ROSES.jpg |
458 |
458 |
N |
1690 |
393 |
product |
1808 |
M |
0 |
|
1808 |
0 |
Anne_Gorgeous_Basket.jpg |
300 |
325 |
N |
3346 |
1934 |
product |
3464 |
M |
0 |
|
3464 |
0 |
Always_&_Gorgeous_Roses.jpg |
308 |
362 |
N |
3381 |
1958 |
product |
3499 |
M |
0 |
Always & Gorgeous Roses |
3499 |