Query time 0.00082
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "37.11"
},
"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 (6735,6740,6734,6739,6741,6742,6743,6744,6750,6752,6868)))",
"cost_info": {
"read_cost": "7.66",
"eval_cost": "1.40",
"prefix_cost": "9.06",
"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": "7.75",
"eval_cost": "1.40",
"prefix_cost": "18.21",
"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": "23.11",
"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 |
Premium_Cashew__Pack_of_2__100_g.jpg |
2000 |
2000 |
N |
16928 |
6734 |
product |
18560 |
M |
0 |
|
18560 |
| 0 |
Premium_Cashew__Pack_of_2__150_g.jpg |
2000 |
2000 |
N |
16929 |
6735 |
product |
18561 |
M |
0 |
|
18561 |
| 0 |
Premium_Pistachio__Pack_of_2__100_g.jpg |
2000 |
2000 |
N |
16933 |
6739 |
product |
18565 |
M |
0 |
|
18565 |
| 0 |
Premium_Pistachio__Pack_of_2__150_g.jpg |
2000 |
2000 |
N |
16934 |
6740 |
product |
18566 |
M |
0 |
|
18566 |
| 0 |
51Afh1MMfkS.jpg |
500 |
500 |
N |
16967 |
6750 |
product |
18599 |
M |
0 |
|
18599 |
| 0 |
51X9izHDUGS.jpg |
500 |
500 |
N |
16969 |
6752 |
product |
18601 |
M |
0 |
|
18601 |
| 0 |
81vKLxDxDPL._SX679_.jpg |
679 |
679 |
N |
169827 |
6744 |
product |
171176 |
M |
0 |
|
171176 |
| 0 |
EDP-400_1_7qi7-i6.png |
1000 |
1000 |
N |
195584 |
6868 |
product |
196922 |
M |
0 |
|
196922 |
| 0 |
1-Date_Series_Small_0010_Powder_Small_1.jpg |
1500 |
1500 |
N |
151880 |
6743 |
product |
153232 |
M |
1 |
|
153232 |
| 0 |
Date_Series_Small_0020_Spread_Small_1.jpg |
1500 |
1500 |
N |
151899 |
6741 |
product |
153251 |
M |
1 |
|
153251 |
| 0 |
Date_Series_Big_0016_Spread_Big_1.jpg |
1500 |
1500 |
N |
151906 |
6742 |
product |
153258 |
M |
1 |
|
153258 |