Query time 0.00139
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.91"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "11.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": 11,
"rows_produced_per_join": 11,
"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 (12424,12454,12439,12429,12434,12428,12427,12426,12425)))",
"cost_info": {
"read_cost": "6.11",
"eval_cost": "1.10",
"prefix_cost": "7.21",
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.75",
"eval_cost": "1.10",
"prefix_cost": "11.06",
"data_read_per_join": "8K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.75",
"eval_cost": "1.10",
"prefix_cost": "14.91",
"data_read_per_join": "6K"
},
"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 |
1380699356-15468-1-3_600x600_2x.jpg |
500 |
407 |
N |
11896 |
12424 |
product |
15379 |
M |
0 |
|
15379 |
| 0 |
1380699356-15468-1-3_600x600_2x_5nz5-jd.jpg |
500 |
407 |
N |
11897 |
12425 |
product |
15380 |
M |
0 |
|
15380 |
| 0 |
1380699356-15468-1-3_600x600_2x_aa7i-tr.jpg |
500 |
407 |
N |
11898 |
12426 |
product |
15381 |
M |
0 |
|
15381 |
| 0 |
1380699356-15468-1-3_600x600_2x_tip3-nq.jpg |
500 |
407 |
N |
11899 |
12427 |
product |
15382 |
M |
0 |
|
15382 |
| 0 |
1380699356-15468-1-3_600x600_2x_e1jm-wt.jpg |
500 |
407 |
N |
11900 |
12428 |
product |
15383 |
M |
0 |
|
15383 |
| 0 |
1380699356-15468-1-3_600x600_2x_sg67-o0.jpg |
500 |
407 |
N |
11901 |
12429 |
product |
15384 |
M |
0 |
|
15384 |
| 0 |
1380699356-15468-1-3_600x600_2x_8rit-ul.jpg |
500 |
407 |
N |
11906 |
12434 |
product |
15389 |
M |
0 |
|
15389 |
| 0 |
1380699356-15468-1-3_600x600_2x_vxwl-pk.jpg |
500 |
407 |
N |
11911 |
12439 |
product |
15394 |
M |
0 |
|
15394 |
| 0 |
1380699356-15468-1-3_600x600_2x_qznl-3j.jpg |
500 |
407 |
N |
11926 |
12454 |
product |
15409 |
M |
0 |
|
15409 |