Query time 0.00153
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "145.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "25.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": 25,
"rows_produced_per_join": 25,
"filtered": "100.00",
"index_condition": "((`webmarco`.`cscart_images_links`.`object_type` = 'product') and (`webmarco`.`cscart_images_links`.`type` = 'M') and (`webmarco`.`cscart_images_links`.`object_id` in (435475,435476,435477,435478,435479,435480,435494,435495,435496,435497,435498,435481,435482,435483,435484,435491,435492,435493,435485,435486,435487,435499,435500,435501,435502)))",
"cost_info": {
"read_cost": "55.01",
"eval_cost": "5.00",
"prefix_cost": "60.01",
"data_read_per_join": "2K"
},
"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": [
"webmarco.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "5.00",
"prefix_cost": "90.01",
"data_read_per_join": "19K"
},
"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": "108",
"ref": [
"webmarco.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "5.00",
"prefix_cost": "120.01",
"data_read_per_join": "14K"
},
"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 |
Untitled_design__3__zg8l-v4.png |
48 |
48 |
N |
4017830 |
435475 |
product |
1659161 |
M |
0 |
|
1659161 |
0 |
Untitled_design__3__zg8l-v4.png |
48 |
48 |
N |
4017831 |
435476 |
product |
1659161 |
M |
0 |
|
1659161 |
0 |
Untitled_design__3__zg8l-v4.png |
48 |
48 |
N |
4017832 |
435477 |
product |
1659161 |
M |
0 |
|
1659161 |
0 |
Untitled_design__3__zg8l-v4.png |
48 |
48 |
N |
4017833 |
435478 |
product |
1659161 |
M |
0 |
|
1659161 |
0 |
Untitled_design__3__zg8l-v4.png |
48 |
48 |
N |
4017834 |
435479 |
product |
1659161 |
M |
0 |
|
1659161 |
0 |
Untitled_design__3__zg8l-v4.png |
48 |
48 |
N |
4017835 |
435480 |
product |
1659161 |
M |
0 |
|
1659161 |