Query time 0.00185
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "36.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "15.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": 15,
"rows_produced_per_join": 15,
"filtered": "100.00",
"index_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_type` = 'product') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`type` = 'M') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_id` in (4637,4636,4635,4466,4467,4468,4234,4160,4235,4164,4335,4336,4337,4600,4601)))",
"cost_info": {
"read_cost": "9.01",
"eval_cost": "1.50",
"prefix_cost": "10.51",
"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": [
"softwarepirmam_hewadelivard_cscart_4.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "15.76",
"data_read_per_join": "11K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res",
"transparent",
"cp_in_opt_list"
]
}
},
{
"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": "108",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "21.01",
"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 |
transparent |
cp_in_opt_list |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
| 0 |
j_v2ru-4t.jpg |
600 |
600 |
N |
N |
Y |
21390 |
4160 |
product |
16277 |
M |
0 |
|
16277 |
| 0 |
k.jpg |
600 |
600 |
N |
N |
Y |
21408 |
4164 |
product |
16289 |
M |
0 |
|
16289 |
| 0 |
06_sd810_pd_2000x2000_1_gray.png |
2000 |
2000 |
N |
N |
Y |
21707 |
4234 |
product |
16280 |
M |
0 |
|
16280 |
| 0 |
k.jpg |
600 |
600 |
N |
N |
Y |
21713 |
4235 |
product |
16289 |
M |
0 |
|
16289 |
| 0 |
22_mfhj-dl.jpg |
600 |
600 |
N |
N |
Y |
22109 |
4335 |
product |
16774 |
M |
0 |
|
16774 |
| 0 |
22_2.jpg |
600 |
600 |
N |
N |
Y |
22124 |
4336 |
product |
16777 |
M |
0 |
|
16777 |
| 0 |
22_3.jpg |
600 |
600 |
N |
N |
Y |
22131 |
4337 |
product |
16780 |
M |
0 |
|
16780 |
| 0 |
22_gb5z-7z.jpg |
600 |
600 |
N |
N |
Y |
22666 |
4466 |
product |
16982 |
M |
0 |
|
16982 |
| 0 |
sd620_p_2000x20000_blue_05_sed9-0k.png |
1000 |
1000 |
N |
N |
Y |
22686 |
4467 |
product |
16987 |
M |
0 |
|
16987 |
| 0 |
22_3_6a0j-yk.jpg |
600 |
600 |
N |
N |
Y |
22693 |
4468 |
product |
16990 |
M |
0 |
|
16990 |
| 0 |
V_gqs6-7s.jpg |
600 |
600 |
N |
N |
Y |
23153 |
4600 |
product |
17373 |
M |
0 |
|
17373 |
| 0 |
77.jpg |
600 |
600 |
N |
N |
Y |
23164 |
4601 |
product |
17377 |
M |
0 |
|
17377 |
| 0 |
22_1vr7-jg.jpg |
600 |
600 |
N |
N |
Y |
23322 |
4635 |
product |
17532 |
M |
0 |
|
17532 |
| 0 |
22_2_u0kb-de.jpg |
600 |
600 |
N |
N |
Y |
23338 |
4636 |
product |
17536 |
M |
0 |
|
17536 |
| 0 |
22_3_c6zm-e0.jpg |
600 |
600 |
N |
N |
Y |
23347 |
4637 |
product |
17540 |
M |
0 |
|
17540 |