Query time 0.00066
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "184.08"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "46.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": 46,
"rows_produced_per_join": 46,
"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 (37518,37830,30064,30041,17982,13923,37831,66490)))",
"cost_info": {
"read_cost": "49.63",
"eval_cost": "4.60",
"prefix_cost": "54.23",
"data_read_per_join": "4K"
},
"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": 46,
"filtered": "100.00",
"cost_info": {
"read_cost": "38.83",
"eval_cost": "4.60",
"prefix_cost": "97.66",
"data_read_per_join": "35K"
},
"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": 46,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.83",
"eval_cost": "4.60",
"prefix_cost": "138.08",
"data_read_per_join": "27K"
},
"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 |
|
|
|
|
68632 |
17982 |
product |
69984 |
A |
1 |
|
|
| 0 |
|
|
|
|
114965 |
30041 |
product |
116317 |
A |
1 |
|
|
| 0 |
|
|
|
|
115578 |
30064 |
product |
116930 |
A |
1 |
|
|
| 0 |
|
|
|
|
166017 |
37830 |
product |
167366 |
A |
1 |
|
|
| 0 |
|
|
|
|
166024 |
37831 |
product |
167373 |
A |
1 |
|
|
| 0 |
|
|
|
|
167031 |
13923 |
product |
168380 |
A |
1 |
|
|
| 0 |
|
|
|
|
68633 |
17982 |
product |
69985 |
A |
2 |
|
|
| 0 |
|
|
|
|
114966 |
30041 |
product |
116318 |
A |
2 |
|
|
| 0 |
|
|
|
|
115579 |
30064 |
product |
116931 |
A |
2 |
|
|
| 0 |
|
|
|
|
166019 |
37830 |
product |
167368 |
A |
2 |
|
|
| 0 |
|
|
|
|
166025 |
37831 |
product |
167374 |
A |
2 |
|
|
| 0 |
|
|
|
|
167032 |
13923 |
product |
168381 |
A |
2 |
|
|
| 0 |
|
|
|
|
68634 |
17982 |
product |
69986 |
A |
3 |
|
|
| 0 |
|
|
|
|
114967 |
30041 |
product |
116319 |
A |
3 |
|
|
| 0 |
|
|
|
|
115580 |
30064 |
product |
116932 |
A |
3 |
|
|
| 0 |
|
|
|
|
166016 |
37830 |
product |
167365 |
A |
3 |
|
|
| 0 |
|
|
|
|
166026 |
37831 |
product |
167375 |
A |
3 |
|
|
| 0 |
|
|
|
|
167033 |
13923 |
product |
168382 |
A |
3 |
|
|
| 0 |
|
|
|
|
68635 |
17982 |
product |
69987 |
A |
4 |
|
|
| 0 |
|
|
|
|
114968 |
30041 |
product |
116320 |
A |
4 |
|
|
| 0 |
|
|
|
|
166018 |
37830 |
product |
167367 |
A |
4 |
|
|
| 0 |
|
|
|
|
167034 |
13923 |
product |
168383 |
A |
4 |
|
|
| 0 |
|
|
|
|
214623 |
37831 |
product |
215898 |
A |
4 |
|
|
| 0 |
|
|
|
|
68636 |
17982 |
product |
69988 |
A |
5 |
|
|
| 0 |
|
|
|
|
114969 |
30041 |
product |
116321 |
A |
5 |
|
|
| 0 |
|
|
|
|
166020 |
37830 |
product |
167369 |
A |
5 |
|
|
| 0 |
|
|
|
|
173264 |
13923 |
product |
174610 |
A |
5 |
|
|
| 0 |
|
|
|
|
68637 |
17982 |
product |
69989 |
A |
6 |
|
|
| 0 |
|
|
|
|
166021 |
37830 |
product |
167370 |
A |
6 |
|
|
| 0 |
|
|
|
|
173276 |
30041 |
product |
174622 |
A |
6 |
|
|
| 0 |
|
|
|
|
182880 |
66490 |
product |
184226 |
A |
6 |
|
|
| 0 |
|
|
|
|
163689 |
37518 |
product |
165041 |
A |
7 |
|
|
| 0 |
|
|
|
|
182881 |
66490 |
product |
184227 |
A |
7 |
|
|
| 0 |
|
|
|
|
214622 |
37830 |
product |
215897 |
A |
7 |
|
|
| 0 |
|
|
|
|
163690 |
37518 |
product |
165042 |
A |
8 |
|
|
| 0 |
|
|
|
|
182882 |
66490 |
product |
184228 |
A |
8 |
|
|
| 0 |
|
|
|
|
163691 |
37518 |
product |
165043 |
A |
9 |
|
|
| 0 |
|
|
|
|
182883 |
66490 |
product |
184229 |
A |
9 |
|
|
| 0 |
|
|
|
|
163692 |
37518 |
product |
165044 |
A |
10 |
|
|
| 0 |
|
|
|
|
182884 |
66490 |
product |
184230 |
A |
10 |
|
|
| 0 |
|
|
|
|
163693 |
37518 |
product |
165045 |
A |
11 |
|
|
| 0 |
|
|
|
|
182885 |
66490 |
product |
184231 |
A |
11 |
|
|
| 0 |
|
|
|
|
163694 |
37518 |
product |
165046 |
A |
12 |
|
|
| 0 |
|
|
|
|
182886 |
66490 |
product |
184232 |
A |
12 |
|
|
| 0 |
|
|
|
|
173304 |
37518 |
product |
174650 |
A |
13 |
|
|
| 0 |
|
|
|
|
182887 |
66490 |
product |
184233 |
A |
13 |
|
|