Query time 0.00122
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "35.57"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "14.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": 14,
"rows_produced_per_join": 14,
"filtered": "100.00",
"index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'M') and (`cscart_db`.`cscart_images_links`.`object_id` in (20987,20984,20978,20980,20982,20979,20981,20986,20985,20983)))",
"cost_info": {
"read_cost": "7.41",
"eval_cost": "1.40",
"prefix_cost": "8.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": [
"cscart_db.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.46",
"eval_cost": "1.40",
"prefix_cost": "16.67",
"data_read_per_join": "10K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
]
}
},
{
"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": [
"cscart_db.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"index_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`cscart_db`.`cscart_common_descriptions`.`object_id` = `cscart_db`.`cscart_images`.`image_id`), true)",
"cost_info": {
"read_cost": "3.50",
"eval_cost": "1.40",
"prefix_cost": "21.57",
"data_read_per_join": "8K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
]
}
}
]
}
}
}
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 |
assorted-pack_24.png |
1080 |
1080 |
N |
79455 |
20979 |
product |
80807 |
M |
0 |
|
80807 |
| 0 |
peach_pack-of-12.png |
1080 |
1080 |
N |
79460 |
20980 |
product |
80812 |
M |
0 |
|
80812 |
| 0 |
peach_pack-of-24.png |
1080 |
1080 |
N |
79466 |
20981 |
product |
80818 |
M |
0 |
|
80818 |
| 0 |
cranberry_pack-of-12.png |
1080 |
1080 |
N |
79472 |
20982 |
product |
80824 |
M |
0 |
|
80824 |
| 0 |
cranberry_pack-of-24.png |
1080 |
1080 |
N |
79478 |
20983 |
product |
80830 |
M |
0 |
|
80830 |
| 0 |
lemon_pack-of-12.png |
1080 |
1080 |
N |
79484 |
20984 |
product |
80836 |
M |
0 |
|
80836 |
| 0 |
lemon_pack-of-24.png |
1080 |
1080 |
N |
79490 |
20985 |
product |
80842 |
M |
0 |
|
80842 |
| 0 |
orange_pack-of-12.png |
1080 |
1080 |
N |
79496 |
20986 |
product |
80848 |
M |
0 |
|
80848 |
| 0 |
orange_pack-of-24.png |
1080 |
1080 |
N |
79502 |
20987 |
product |
80854 |
M |
0 |
|
80854 |
| 0 |
assorted-pack_12_o699-wl_1mf3-n5.png |
250 |
250 |
N |
79895 |
20978 |
product |
81247 |
M |
5 |
|
81247 |