Query time 0.00151
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "54.71"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "23.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": 23,
"rows_produced_per_join": 23,
"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 (13232,13233,13234,13235,13236,13237,13238,13225,13226,13227,13228,13229,13230,13231,13239,13240,13241,13242,13243,13244,13245)))",
"cost_info": {
"read_cost": "13.31",
"eval_cost": "2.30",
"prefix_cost": "15.61",
"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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.75",
"eval_cost": "2.30",
"prefix_cost": "23.66",
"data_read_per_join": "17K"
},
"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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.75",
"eval_cost": "2.30",
"prefix_cost": "31.71",
"data_read_per_join": "13K"
},
"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 |
424851_600x600.jpg |
600 |
324 |
N |
18938 |
13225 |
product |
22419 |
M |
0 |
|
22419 |
| 0 |
424851QySsbNo3R2VgU_600x600.jpg |
600 |
324 |
N |
18939 |
13226 |
product |
22420 |
M |
0 |
|
22420 |
| 0 |
424851eYI79vma1fXCj_600x600.jpg |
600 |
324 |
N |
18940 |
13227 |
product |
22421 |
M |
0 |
|
22421 |
| 0 |
424851AJuaQ1UDxjW7y_600x600.jpg |
600 |
324 |
N |
18941 |
13228 |
product |
22422 |
M |
0 |
|
22422 |
| 0 |
424851hyK2NewZw8L8Q_600x600.jpg |
600 |
324 |
N |
18942 |
13229 |
product |
22423 |
M |
0 |
|
22423 |
| 0 |
4248518DY0fjmFqMVic_600x600.jpg |
600 |
324 |
N |
18943 |
13230 |
product |
22424 |
M |
0 |
|
22424 |
| 0 |
424851Oaf45O6PMQqY5_600x600.jpg |
600 |
324 |
N |
18944 |
13231 |
product |
22425 |
M |
0 |
|
22425 |
| 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 |
424642-AM-40-KM_600x600.jpg |
600 |
320 |
N |
18952 |
13239 |
product |
22433 |
M |
0 |
|
22433 |
| 0 |
424642-AM-40-KMzZyHettY6cLdV_600x600.jpg |
600 |
320 |
N |
18953 |
13240 |
product |
22434 |
M |
0 |
|
22434 |
| 0 |
424642-AM-40-KMIKQ1NVm9EPiWx_600x600.jpg |
600 |
320 |
N |
18954 |
13241 |
product |
22435 |
M |
0 |
|
22435 |
| 0 |
424642-AM-40-KMUgEA6ryjWCH3I_600x600.jpg |
600 |
320 |
N |
18955 |
13242 |
product |
22436 |
M |
0 |
|
22436 |
| 0 |
424642-AM-40-KMqG7y1VCh8dxys_600x600.jpg |
600 |
320 |
N |
18956 |
13243 |
product |
22437 |
M |
0 |
|
22437 |
| 0 |
424642-AM-40-KMjJAQ5mpJpjCUS_600x600.jpg |
600 |
320 |
N |
18957 |
13244 |
product |
22438 |
M |
0 |
|
22438 |
| 0 |
424642-AM-40-KM3USVQu1liCCNB_600x600.jpg |
600 |
320 |
N |
18958 |
13245 |
product |
22439 |
M |
0 |
|
22439 |