Query time 0.00097
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "40.56"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "17.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": 17,
"rows_produced_per_join": 17,
"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 (12465,12475,12485,12470,12468,12464,12466,12467,12974,12976,12978,12980,12982,12984,12986,12975)))",
"cost_info": {
"read_cost": "9.96",
"eval_cost": "1.70",
"prefix_cost": "11.66",
"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": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.25",
"eval_cost": "1.70",
"prefix_cost": "17.61",
"data_read_per_join": "13K"
},
"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": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.25",
"eval_cost": "1.70",
"prefix_cost": "23.56",
"data_read_per_join": "10K"
},
"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_njxe-k8.jpg |
500 |
365 |
N |
11942 |
12470 |
product |
15425 |
M |
0 |
|
15425 |
| 0 |
1549537407-27672_600x600_2x_aw8e-0p.jpg |
500 |
365 |
N |
11947 |
12475 |
product |
15430 |
M |
0 |
|
15430 |
| 0 |
1549537407-27672_600x600_2x_3a3w-la.jpg |
500 |
365 |
N |
11957 |
12485 |
product |
15440 |
M |
0 |
|
15440 |
| 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-300wDf1RpEUqHaWM_600x600.jpg |
600 |
400 |
N |
18689 |
12976 |
product |
22170 |
M |
0 |
|
22170 |
| 0 |
Seite-22-EB-60-300uSUlEdBqtPdbB_600x600.jpg |
600 |
400 |
N |
18691 |
12978 |
product |
22172 |
M |
0 |
|
22172 |
| 0 |
Seite-22-EB-60-300RXazRT1IZRdhG_600x600.jpg |
600 |
400 |
N |
18693 |
12980 |
product |
22174 |
M |
0 |
|
22174 |
| 0 |
Seite-22-EB-60-300Yq2W4qqa2POWf_600x600.jpg |
600 |
400 |
N |
18695 |
12982 |
product |
22176 |
M |
0 |
|
22176 |
| 0 |
Seite-22-EB-60-300CSIWPdcEtsxAK_600x600.jpg |
600 |
400 |
N |
18697 |
12984 |
product |
22178 |
M |
0 |
|
22178 |
| 0 |
Seite-22-EB-60-300H4d4jWauAFyoR_600x600.jpg |
600 |
400 |
N |
18699 |
12986 |
product |
22180 |
M |
0 |
|
22180 |