Query time 0.00067
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "75.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "14.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": 14,
"rows_produced_per_join": 14,
"filtered": "100.00",
"index_condition": "((`cscart`.`cscart_images_links`.`object_type` = 'product') and (`cscart`.`cscart_images_links`.`type` = 'M') and (`cscart`.`cscart_images_links`.`object_id` in (1157,1164,1013,1014,1108,1162,1152,1163)))",
"cost_info": {
"read_cost": "24.81",
"eval_cost": "2.80",
"prefix_cost": "27.61",
"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": [
"cscart.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.00",
"eval_cost": "2.80",
"prefix_cost": "44.41",
"data_read_per_join": "10K"
},
"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": [
"cscart.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.00",
"eval_cost": "2.80",
"prefix_cost": "61.21",
"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 |
Render_White_Bottom_wzip-1w.png |
1024 |
1024 |
N |
7784 |
1013 |
product |
9314 |
M |
0 |
|
9314 |
| 0 |
0037.png |
2048 |
2048 |
N |
8931 |
1157 |
product |
10444 |
M |
0 |
|
10444 |
| 0 |
Render_Satin_Bottom_xabx-qb.png |
1024 |
1024 |
N |
7786 |
1014 |
product |
9315 |
M |
1 |
|
9315 |
| 0 |
0037___1_.png |
2048 |
2048 |
N |
8942 |
1164 |
product |
10450 |
M |
1 |
|
10450 |
| 0 |
0044__1_.png |
2048 |
2048 |
N |
8921 |
1108 |
product |
10436 |
M |
2 |
|
10436 |
| 0 |
0044__2_.png |
2048 |
2048 |
N |
8923 |
1152 |
product |
10438 |
M |
3 |
|
10438 |
| 0 |
0044___1_.png |
2048 |
2048 |
N |
8938 |
1162 |
product |
10448 |
M |
3 |
|
10448 |
| 0 |
0044___2_.png |
2048 |
2048 |
N |
8940 |
1163 |
product |
10449 |
M |
4 |
|
10449 |