Query time 0.00113
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "44.86"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "19.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": 19,
"rows_produced_per_join": 19,
"filtered": "100.00",
"index_condition": "((`test2_gaseus`.`cscart_images_links`.`object_type` = 'product') and (`test2_gaseus`.`cscart_images_links`.`type` = 'M') and (`test2_gaseus`.`cscart_images_links`.`object_id` in (12464,12474,12484,12469,12468,12465,12466,12467,12975,12977,12979,12981,12983,12985,12987,12974)))",
"cost_info": {
"read_cost": "10.66",
"eval_cost": "1.90",
"prefix_cost": "12.56",
"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": [
"test2_gaseus.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.75",
"eval_cost": "1.90",
"prefix_cost": "19.21",
"data_read_per_join": "14K"
},
"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": [
"test2_gaseus.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.75",
"eval_cost": "1.90",
"prefix_cost": "25.86",
"data_read_per_join": "11K"
},
"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 |
1549537407-27672_600x600_2x.jpg |
500 |
365 |
N |
11936 |
12464 |
product |
15419 |
M |
0 |
|
15419 |
| 0 |
1549537407-27672_600x600_2x_kyjf-vi.jpg |
500 |
365 |
N |
11937 |
12465 |
product |
15420 |
M |
0 |
|
15420 |
| 0 |
1549537407-27672_600x600_2x_29m5-m2.jpg |
500 |
365 |
N |
11938 |
12466 |
product |
15421 |
M |
0 |
|
15421 |
| 0 |
1549537407-27672_600x600_2x_5kjh-b6.jpg |
500 |
365 |
N |
11939 |
12467 |
product |
15422 |
M |
0 |
|
15422 |
| 0 |
1549537407-27672_600x600_2x_1diw-7l.jpg |
500 |
365 |
N |
11940 |
12468 |
product |
15423 |
M |
0 |
|
15423 |
| 0 |
1549537407-27672_600x600_2x_ue7k-ic.jpg |
500 |
365 |
N |
11941 |
12469 |
product |
15424 |
M |
0 |
|
15424 |
| 0 |
1549537407-27672_600x600_2x_mxeq-ip.jpg |
500 |
365 |
N |
11946 |
12474 |
product |
15429 |
M |
0 |
|
15429 |
| 0 |
1549537407-27672_600x600_2x_bueo-l8.jpg |
500 |
365 |
N |
11956 |
12484 |
product |
15439 |
M |
0 |
|
15439 |
| 0 |
Seite-22-EB-60-300lhqiJE9XqIQM5_600x600.jpg |
600 |
400 |
N |
18687 |
12974 |
product |
22168 |
M |
0 |
|
22168 |
| 0 |
Seite-22-EB-60-300KORIWQFo1wZsW_600x600.jpg |
600 |
400 |
N |
18688 |
12975 |
product |
22169 |
M |
0 |
|
22169 |
| 0 |
Seite-22-EB-60-300pUcCVH1oLy7Cz_600x600.jpg |
600 |
400 |
N |
18690 |
12977 |
product |
22171 |
M |
0 |
|
22171 |
| 0 |
Seite-22-EB-60-300G8yaA7GziPlkn_600x600.jpg |
600 |
400 |
N |
18692 |
12979 |
product |
22173 |
M |
0 |
|
22173 |
| 0 |
Seite-22-EB-60-300nGnjX8wnzXVDE_600x600.jpg |
600 |
400 |
N |
18694 |
12981 |
product |
22175 |
M |
0 |
|
22175 |
| 0 |
Seite-22-EB-60-300WNQ5SgkVKB5cp_600x600.jpg |
600 |
400 |
N |
18696 |
12983 |
product |
22177 |
M |
0 |
|
22177 |
| 0 |
Seite-22-EB-60-300vAwnm5szyT5L2_600x600.jpg |
600 |
400 |
N |
18698 |
12985 |
product |
22179 |
M |
0 |
|
22179 |
| 0 |
Seite-22-EB-60-300z1GVN45Tcpfof_600x600.jpg |
600 |
400 |
N |
18700 |
12987 |
product |
22181 |
M |
0 |
|
22181 |