Query time 0.00138
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "57.11"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "24.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": 24,
"rows_produced_per_join": 24,
"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 (12724,12734,12714,12729,12725,12726,12727,12728,13267,13268,13269,13270,13271,13272,13273,13232,13233,13234,13235,13236,13237,13238)))",
"cost_info": {
"read_cost": "13.91",
"eval_cost": "2.40",
"prefix_cost": "16.31",
"data_read_per_join": "2K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "2.40",
"prefix_cost": "24.71",
"data_read_per_join": "18K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "2.40",
"prefix_cost": "33.11",
"data_read_per_join": "14K"
},
"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 |
1380098192-13835_600x600_2x.jpg |
500 |
334 |
N |
12186 |
12714 |
product |
15669 |
M |
0 |
|
15669 |
| 0 |
1380522728-22669_600x600_2x.jpg |
500 |
334 |
N |
12196 |
12724 |
product |
15679 |
M |
0 |
|
15679 |
| 0 |
1380522728-22669_600x600_2x_2a8k-dg.jpg |
500 |
334 |
N |
12197 |
12725 |
product |
15680 |
M |
0 |
|
15680 |
| 0 |
1380522728-22669_600x600_2x_6sxj-ct.jpg |
500 |
334 |
N |
12198 |
12726 |
product |
15681 |
M |
0 |
|
15681 |
| 0 |
1380522728-22669_600x600_2x_g79n-5w.jpg |
500 |
334 |
N |
12199 |
12727 |
product |
15682 |
M |
0 |
|
15682 |
| 0 |
1380522728-22669_600x600_2x_6nkt-96.jpg |
500 |
334 |
N |
12200 |
12728 |
product |
15683 |
M |
0 |
|
15683 |
| 0 |
1380522728-22669_600x600_2x_83so-zt.jpg |
500 |
334 |
N |
12201 |
12729 |
product |
15684 |
M |
0 |
|
15684 |
| 0 |
1380522728-22669_600x600_2x_qkj1-l6.jpg |
500 |
334 |
N |
12206 |
12734 |
product |
15689 |
M |
0 |
|
15689 |
| 0 |
424854_600x600.jpg |
600 |
320 |
N |
18945 |
13232 |
product |
22426 |
M |
0 |
|
22426 |
| 0 |
4248545XdXGRiXsKsu8_600x600.jpg |
600 |
320 |
N |
18946 |
13233 |
product |
22427 |
M |
0 |
|
22427 |
| 0 |
424854ITP9PUkKnQDz8_600x600.jpg |
600 |
320 |
N |
18947 |
13234 |
product |
22428 |
M |
0 |
|
22428 |
| 0 |
424854lKzM85dzgzRmX_600x600.jpg |
600 |
320 |
N |
18948 |
13235 |
product |
22429 |
M |
0 |
|
22429 |
| 0 |
4248542bcViqPNzifpd_600x600.jpg |
600 |
320 |
N |
18949 |
13236 |
product |
22430 |
M |
0 |
|
22430 |
| 0 |
424854KKOVvjzlQlLJK_600x600.jpg |
600 |
320 |
N |
18950 |
13237 |
product |
22431 |
M |
0 |
|
22431 |
| 0 |
4248544sOHyKX395WOp_600x600.jpg |
600 |
320 |
N |
18951 |
13238 |
product |
22432 |
M |
0 |
|
22432 |
| 0 |
x474851_600x600.jpg |
500 |
432 |
N |
18980 |
13267 |
product |
22461 |
M |
0 |
|
22461 |
| 0 |
1352908615-31041_600x600.jpg |
500 |
432 |
N |
18981 |
13268 |
product |
22462 |
M |
0 |
|
22462 |
| 0 |
1352908724-31983_600x600.jpg |
500 |
432 |
N |
18982 |
13269 |
product |
22463 |
M |
0 |
|
22463 |
| 0 |
1352908865-458_600x600.jpg |
500 |
432 |
N |
18983 |
13270 |
product |
22464 |
M |
0 |
|
22464 |
| 0 |
1352908973-1131_600x600.jpg |
500 |
432 |
N |
18984 |
13271 |
product |
22465 |
M |
0 |
|
22465 |
| 0 |
1352909064-2041_600x600.jpg |
500 |
432 |
N |
18985 |
13272 |
product |
22466 |
M |
0 |
|
22466 |
| 0 |
1352909171-3271_600x600.jpg |
500 |
432 |
N |
18986 |
13273 |
product |
22467 |
M |
0 |
|
22467 |