Query time 0.00189
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "19.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "8.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": 8,
"rows_produced_per_join": 8,
"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 (2198,2286,2349,2439,2448,2528,2617,6848)))",
"cost_info": {
"read_cost": "4.81",
"eval_cost": "0.80",
"prefix_cost": "5.61",
"data_read_per_join": "768"
},
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.00",
"eval_cost": "0.80",
"prefix_cost": "8.41",
"data_read_per_join": "6K"
},
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.00",
"eval_cost": "0.80",
"prefix_cost": "11.21",
"data_read_per_join": "4K"
},
"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 |
1331195009-25521_600x600_2x.jpg |
380 |
305 |
N |
6320 |
6848 |
product |
9803 |
M |
0 |
|
9803 |
| 0 |
1447432387-1306-1_600x600_2x_g4dd-94.jpg |
500 |
495 |
N |
14899 |
2198 |
product |
18380 |
M |
0 |
|
18380 |
| 0 |
1331197702-26077_600x600_2x_79ay-40.jpg |
380 |
305 |
N |
14987 |
2286 |
product |
18468 |
M |
0 |
|
18468 |
| 0 |
H20-300_600x600_2x_puo9-sk.jpg |
500 |
478 |
N |
15050 |
2349 |
product |
18531 |
M |
0 |
|
18531 |
| 0 |
1331198496-31117_600x600_2x_lwsr-xi.jpg |
380 |
305 |
N |
15140 |
2439 |
product |
18621 |
M |
0 |
|
18621 |
| 0 |
1331197901-7954_600x600_2x_prr6-jp.jpg |
380 |
305 |
N |
15149 |
2448 |
product |
18630 |
M |
0 |
|
18630 |
| 0 |
1331198726-20715_600x600_2x_jn8l-6n.jpg |
380 |
305 |
N |
15229 |
2528 |
product |
18710 |
M |
0 |
|
18710 |
| 0 |
1331198620-13273_600x600_2x_q4ds-7c.jpg |
380 |
305 |
N |
15318 |
2617 |
product |
18799 |
M |
0 |
|
18799 |