Query time 0.00090
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "117.20"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "40.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": 40,
"rows_produced_per_join": 40,
"filtered": "100.00",
"index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'A') and (`cscart_db`.`cscart_images_links`.`object_id` in (32160,39122,69318,69901,68968,31306,66392,31307)))",
"cost_info": {
"read_cost": "27.19",
"eval_cost": "4.00",
"prefix_cost": "31.19",
"data_read_per_join": "3K"
},
"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": 40,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.70",
"eval_cost": "4.00",
"prefix_cost": "55.89",
"data_read_per_join": "30K"
},
"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": 40,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.31",
"eval_cost": "4.00",
"prefix_cost": "77.20",
"data_read_per_join": "23K"
},
"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 |
|
|
|
|
120306 |
31306 |
product |
121658 |
A |
1 |
|
|
| 0 |
|
|
|
|
120310 |
31307 |
product |
121662 |
A |
1 |
|
|
| 0 |
|
|
|
|
125800 |
32160 |
product |
127152 |
A |
1 |
|
|
| 0 |
|
|
|
|
173400 |
39122 |
product |
174746 |
A |
1 |
|
|
| 0 |
|
|
|
|
181543 |
66392 |
product |
182889 |
A |
1 |
|
|
| 0 |
|
|
|
|
202013 |
68968 |
product |
203297 |
A |
1 |
|
|
| 0 |
|
|
|
|
205528 |
69318 |
product |
206812 |
A |
1 |
|
|
| 0 |
|
|
|
|
120307 |
31306 |
product |
121659 |
A |
2 |
|
|
| 0 |
|
|
|
|
120311 |
31307 |
product |
121663 |
A |
2 |
|
|
| 0 |
|
|
|
|
125801 |
32160 |
product |
127153 |
A |
2 |
|
|
| 0 |
|
|
|
|
181544 |
66392 |
product |
182890 |
A |
2 |
|
|
| 0 |
|
|
|
|
202014 |
68968 |
product |
203298 |
A |
2 |
|
|
| 0 |
|
|
|
|
205529 |
69318 |
product |
206813 |
A |
2 |
|
|
| 0 |
|
|
|
|
120308 |
31306 |
product |
121660 |
A |
3 |
|
|
| 0 |
|
|
|
|
120312 |
31307 |
product |
121664 |
A |
3 |
|
|
| 0 |
|
|
|
|
125802 |
32160 |
product |
127154 |
A |
3 |
|
|
| 0 |
|
|
|
|
181545 |
66392 |
product |
182891 |
A |
3 |
|
|
| 0 |
|
|
|
|
202015 |
68968 |
product |
203299 |
A |
3 |
|
|
| 0 |
|
|
|
|
205530 |
69318 |
product |
206814 |
A |
3 |
|
|
| 0 |
|
|
|
|
125803 |
32160 |
product |
127155 |
A |
4 |
|
|
| 0 |
|
|
|
|
173442 |
31306 |
product |
174788 |
A |
4 |
|
|
| 0 |
|
|
|
|
173443 |
31307 |
product |
174789 |
A |
4 |
|
|
| 0 |
|
|
|
|
181546 |
66392 |
product |
182892 |
A |
4 |
|
|
| 0 |
|
|
|
|
202016 |
68968 |
product |
203300 |
A |
4 |
|
|
| 0 |
|
|
|
|
205531 |
69318 |
product |
206815 |
A |
4 |
|
|
| 0 |
|
|
|
|
181547 |
66392 |
product |
182893 |
A |
5 |
|
|
| 0 |
|
|
|
|
202017 |
68968 |
product |
203301 |
A |
5 |
|
|
| 0 |
|
|
|
|
205532 |
69318 |
product |
206816 |
A |
5 |
|
|
| 0 |
|
|
|
|
214372 |
32160 |
product |
215647 |
A |
5 |
|
|
| 0 |
|
|
|
|
181548 |
66392 |
product |
182894 |
A |
6 |
|
|
| 0 |
|
|
|
|
202018 |
68968 |
product |
203302 |
A |
6 |
|
|
| 0 |
|
|
|
|
205533 |
69318 |
product |
206817 |
A |
6 |
|
|
| 0 |
|
|
|
|
202019 |
68968 |
product |
203303 |
A |
7 |
|
|
| 0 |
|
|
|
|
202020 |
68968 |
product |
203304 |
A |
8 |
|
|
| 0 |
|
|
|
|
213296 |
69901 |
product |
214571 |
A |
10 |
|
|
| 0 |
|
|
|
|
213297 |
69901 |
product |
214572 |
A |
11 |
|
|
| 0 |
|
|
|
|
213298 |
69901 |
product |
214573 |
A |
12 |
|
|
| 0 |
|
|
|
|
213299 |
69901 |
product |
214574 |
A |
13 |
|
|
| 0 |
|
|
|
|
213300 |
69901 |
product |
214575 |
A |
14 |
|
|
| 0 |
|
|
|
|
213301 |
69901 |
product |
214576 |
A |
15 |
|
|