Query time 0.00098
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "103.83"
},
"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",
"idx_object_type_type_position"
],
"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": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'M') and (`cscart_db`.`cscart_images_links`.`object_id` in (28937,28960,17901,17900,17898,17897,28938,28944,17906,28955,28958,28956,17899,17903,17907,17888,17889,17892,17904,17905,28940,28945,28946,28950)))",
"cost_info": {
"read_cost": "36.37",
"eval_cost": "2.40",
"prefix_cost": "38.77",
"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": [
"cscart_db.cscart_images_links.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.05",
"eval_cost": "2.40",
"prefix_cost": "60.22",
"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": "107",
"ref": [
"cscart_db.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.22",
"eval_cost": "2.40",
"prefix_cost": "79.84",
"data_read_per_join": "14K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`cscart_db`.`cscart_common_descriptions`.`object_id` = `cscart_db`.`cscart_images`.`image_id`), true)"
}
}
]
}
}
}
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 |
|
|
|
|
68343 |
17888 |
product |
69695 |
M |
0 |
|
|
| 0 |
|
|
|
|
68347 |
17889 |
product |
69699 |
M |
0 |
|
|
| 0 |
|
|
|
|
68359 |
17892 |
product |
69711 |
M |
0 |
|
|
| 0 |
|
|
|
|
68379 |
17897 |
product |
69731 |
M |
0 |
|
|
| 0 |
|
|
|
|
68383 |
17898 |
product |
69735 |
M |
0 |
|
|
| 0 |
|
|
|
|
68387 |
17899 |
product |
69739 |
M |
0 |
|
|
| 0 |
|
|
|
|
68391 |
17900 |
product |
69743 |
M |
0 |
|
|
| 0 |
|
|
|
|
68395 |
17901 |
product |
69747 |
M |
0 |
|
|
| 0 |
|
|
|
|
68403 |
17903 |
product |
69755 |
M |
0 |
|
|
| 0 |
|
|
|
|
68407 |
17904 |
product |
69759 |
M |
0 |
|
|
| 0 |
|
|
|
|
68411 |
17905 |
product |
69763 |
M |
0 |
|
|
| 0 |
|
|
|
|
68415 |
17907 |
product |
69767 |
M |
0 |
|
|
| 0 |
|
|
|
|
68532 |
17906 |
product |
69884 |
M |
0 |
|
|
| 0 |
|
|
|
|
107879 |
28937 |
product |
109231 |
M |
0 |
|
|
| 0 |
|
|
|
|
107885 |
28938 |
product |
109237 |
M |
0 |
|
|
| 0 |
|
|
|
|
107897 |
28940 |
product |
109249 |
M |
0 |
|
|
| 0 |
|
|
|
|
107945 |
28944 |
product |
109297 |
M |
0 |
|
|
| 0 |
|
|
|
|
107951 |
28945 |
product |
109303 |
M |
0 |
|
|
| 0 |
|
|
|
|
107957 |
28946 |
product |
109309 |
M |
0 |
|
|
| 0 |
|
|
|
|
107981 |
28950 |
product |
109333 |
M |
0 |
|
|
| 0 |
|
|
|
|
108022 |
28956 |
product |
109374 |
M |
0 |
|
|
| 0 |
|
|
|
|
108034 |
28958 |
product |
109386 |
M |
0 |
|
|
| 0 |
|
|
|
|
108046 |
28960 |
product |
109398 |
M |
0 |
|
|
| 0 |
|
|
|
|
108016 |
28955 |
product |
109368 |
M |
6 |
|
|