Query time 0.00119
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "35.76"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "15.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": 15,
"rows_produced_per_join": 15,
"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 (12594,12604,12599,12598,12597,12596,12595,13064,13065,13066,13067,13068,13069,13070)))",
"cost_info": {
"read_cost": "8.76",
"eval_cost": "1.50",
"prefix_cost": "10.26",
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "15.51",
"data_read_per_join": "11K"
},
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "20.76",
"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 |
1381127127-11093-1-2_600x600_2x.jpg |
443 |
500 |
N |
12066 |
12594 |
product |
15549 |
M |
0 |
|
15549 |
| 0 |
1381127127-11093-1-2_600x600_2x_1rj7-fu.jpg |
443 |
500 |
N |
12067 |
12595 |
product |
15550 |
M |
0 |
|
15550 |
| 0 |
1381127127-11093-1-2_600x600_2x_ity4-wg.jpg |
443 |
500 |
N |
12068 |
12596 |
product |
15551 |
M |
0 |
|
15551 |
| 0 |
1381127127-11093-1-2_600x600_2x_vrr2-df.jpg |
443 |
500 |
N |
12069 |
12597 |
product |
15552 |
M |
0 |
|
15552 |
| 0 |
1381127127-11093-1-2_600x600_2x_4tq2-2y.jpg |
443 |
500 |
N |
12070 |
12598 |
product |
15553 |
M |
0 |
|
15553 |
| 0 |
1381127127-11093-1-2_600x600_2x_ov5q-5t.jpg |
443 |
500 |
N |
12071 |
12599 |
product |
15554 |
M |
0 |
|
15554 |
| 0 |
1381127127-11093-1-2_600x600_2x_3fxx-2n.jpg |
443 |
500 |
N |
12076 |
12604 |
product |
15559 |
M |
0 |
|
15559 |
| 0 |
1390990147-13800_600x600.jpg |
500 |
230 |
N |
18777 |
13064 |
product |
22258 |
M |
0 |
|
22258 |
| 0 |
1406103606-21428_600x600.jpg |
500 |
230 |
N |
18778 |
13065 |
product |
22259 |
M |
0 |
|
22259 |
| 0 |
1390989077-22610_600x600.jpg |
500 |
230 |
N |
18779 |
13066 |
product |
22260 |
M |
0 |
|
22260 |
| 0 |
1390989405-30666_600x600.jpg |
500 |
230 |
N |
18780 |
13067 |
product |
22261 |
M |
0 |
|
22261 |
| 0 |
1390989688-4340_600x600.jpg |
500 |
230 |
N |
18781 |
13068 |
product |
22262 |
M |
0 |
|
22262 |
| 0 |
BS-50_600x600.jpg |
500 |
230 |
N |
18782 |
13069 |
product |
22263 |
M |
0 |
|
22263 |
| 0 |
1390989900-8067_600x600.jpg |
500 |
230 |
N |
18783 |
13070 |
product |
22264 |
M |
0 |
|
22264 |