Query time 0.00094
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "99.98"
},
"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 (34283,39054,63926,65693,9464,36454,68345,29768,31344,68351,68585,39124,68969,68588,58579,68587,68610,18067,66418,66479,67724,69020,70258,18063)))",
"cost_info": {
"read_cost": "34.97",
"eval_cost": "2.40",
"prefix_cost": "37.37",
"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": "18.17",
"eval_cost": "2.40",
"prefix_cost": "57.94",
"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": "15.65",
"eval_cost": "2.40",
"prefix_cost": "75.99",
"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 |
|
|
|
|
27241 |
9464 |
product |
28593 |
M |
0 |
|
|
| 0 |
|
|
|
|
69413 |
18063 |
product |
70765 |
M |
0 |
|
|
| 0 |
|
|
|
|
69431 |
18067 |
product |
70783 |
M |
0 |
|
|
| 0 |
|
|
|
|
112904 |
29768 |
product |
114256 |
M |
0 |
|
|
| 0 |
|
|
|
|
120531 |
31344 |
product |
121883 |
M |
0 |
|
|
| 0 |
|
|
|
|
143868 |
34283 |
product |
145220 |
M |
0 |
|
|
| 0 |
|
|
|
|
159120 |
36454 |
product |
160472 |
M |
0 |
|
|
| 0 |
|
|
|
|
170383 |
39054 |
product |
171732 |
M |
0 |
|
|
| 0 |
|
|
|
|
178848 |
65693 |
product |
180194 |
M |
0 |
|
|
| 0 |
|
|
|
|
180478 |
63926 |
product |
181824 |
M |
0 |
|
|
| 0 |
|
|
|
|
181921 |
66418 |
product |
183267 |
M |
0 |
|
|
| 0 |
|
|
|
|
190734 |
67724 |
product |
192072 |
M |
0 |
|
|
| 0 |
|
|
|
|
196391 |
68345 |
product |
197729 |
M |
0 |
|
|
| 0 |
|
|
|
|
196449 |
68351 |
product |
197787 |
M |
0 |
|
|
| 0 |
|
|
|
|
196662 |
58579 |
product |
198000 |
M |
0 |
|
|
| 0 |
|
|
|
|
198283 |
68585 |
product |
199567 |
M |
0 |
|
|
| 0 |
|
|
|
|
198301 |
68587 |
product |
199585 |
M |
0 |
|
|
| 0 |
|
|
|
|
198308 |
68588 |
product |
199592 |
M |
0 |
|
|
| 0 |
|
|
|
|
198597 |
68610 |
product |
199881 |
M |
0 |
|
|
| 0 |
|
|
|
|
202003 |
68969 |
product |
203287 |
M |
0 |
|
|
| 0 |
|
|
|
|
204425 |
69020 |
product |
205709 |
M |
0 |
|
|
| 0 |
|
|
|
|
215092 |
70258 |
product |
216367 |
M |
0 |
|
|
| 0 |
|
|
|
|
182950 |
66479 |
product |
184296 |
M |
2 |
|
|
| 0 |
|
|
|
|
170523 |
39124 |
product |
171872 |
M |
10 |
|
|