Query time 0.00199
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "31.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "13.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": 13,
"rows_produced_per_join": 13,
"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 (1274,1485,1483,1484,4796,4797,4798,4802,4800,4799,4794,6617,6618)))",
"cost_info": {
"read_cost": "7.81",
"eval_cost": "1.30",
"prefix_cost": "9.11",
"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": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.25",
"eval_cost": "1.30",
"prefix_cost": "13.66",
"data_read_per_join": "10K"
},
"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": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.25",
"eval_cost": "1.30",
"prefix_cost": "18.21",
"data_read_per_join": "7K"
},
"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 |
Graphite.jpg |
600 |
600 |
N |
N |
Y |
11200 |
1274 |
product |
10064 |
M |
0 |
|
10064 |
| 0 |
Silver.jpg |
600 |
600 |
N |
N |
Y |
12058 |
1483 |
product |
10065 |
M |
0 |
|
10065 |
| 0 |
Silver.jpg |
600 |
600 |
N |
N |
Y |
12060 |
1485 |
product |
10065 |
M |
0 |
|
10065 |
| 0 |
Navy.jpg |
600 |
600 |
N |
N |
Y |
12064 |
1484 |
product |
10066 |
M |
0 |
|
10066 |
| 0 |
Delivard_Product_Images__38_.jpg |
600 |
600 |
N |
N |
Y |
23843 |
4797 |
product |
17914 |
M |
0 |
|
17914 |
| 0 |
Delivard_Product_Images__40_.jpg |
600 |
600 |
N |
N |
Y |
23846 |
4794 |
product |
17916 |
M |
0 |
|
17916 |
| 0 |
Delivard_Product_Images__36__23hy-w9.jpg |
600 |
600 |
N |
N |
Y |
23850 |
4800 |
product |
17918 |
M |
0 |
|
17918 |
| 0 |
Delivard_Product_Images__31_.jpg |
600 |
600 |
N |
N |
Y |
30780 |
6618 |
product |
17911 |
M |
0 |
|
17911 |
| 0 |
Delivard_Product_Images__40_.jpg |
600 |
600 |
N |
N |
Y |
30782 |
6617 |
product |
17916 |
M |
0 |
|
17916 |
| 0 |
Delivard_Product_Images__36_.jpg |
600 |
600 |
N |
N |
Y |
23841 |
4796 |
product |
17913 |
M |
2 |
|
17913 |
| 0 |
Delivard_Product_Images__38__fdnu-iy.jpg |
600 |
600 |
N |
N |
Y |
23847 |
4798 |
product |
17917 |
M |
2 |
|
17917 |
| 0 |
Delivard_Product_Images__38__fdnu-iy.jpg |
600 |
600 |
N |
N |
Y |
23856 |
4799 |
product |
17917 |
M |
2 |
|
17917 |
| 0 |
Delivard_Product_Images__38__fdnu-iy.jpg |
600 |
600 |
N |
N |
Y |
23859 |
4802 |
product |
17917 |
M |
2 |
|
17917 |