Query time 0.00057
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "129.03"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "42.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": 42,
"rows_produced_per_join": 42,
"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 (67766,68610,67796,67754,67798,67804,67820,67822)))",
"cost_info": {
"read_cost": "35.29",
"eval_cost": "4.20",
"prefix_cost": "39.49",
"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": 42,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.53",
"eval_cost": "4.20",
"prefix_cost": "65.22",
"data_read_per_join": "32K"
},
"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": 42,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.61",
"eval_cost": "4.20",
"prefix_cost": "87.03",
"data_read_per_join": "24K"
},
"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 |
|
|
|
|
191180 |
67754 |
product |
192518 |
A |
1 |
|
|
| 0 |
|
|
|
|
191260 |
67766 |
product |
192598 |
A |
1 |
|
|
| 0 |
|
|
|
|
191615 |
67820 |
product |
192953 |
A |
1 |
|
|
| 0 |
|
|
|
|
191627 |
67822 |
product |
192965 |
A |
1 |
|
|
| 0 |
|
|
|
|
201829 |
67796 |
product |
203113 |
A |
1 |
|
|
| 0 |
|
|
|
|
201839 |
67798 |
product |
203123 |
A |
1 |
|
|
| 0 |
|
|
|
|
201872 |
67804 |
product |
203156 |
A |
1 |
|
|
| 0 |
|
|
|
|
191181 |
67754 |
product |
192519 |
A |
2 |
|
|
| 0 |
|
|
|
|
191261 |
67766 |
product |
192599 |
A |
2 |
|
|
| 0 |
|
|
|
|
191616 |
67820 |
product |
192954 |
A |
2 |
|
|
| 0 |
|
|
|
|
191628 |
67822 |
product |
192966 |
A |
2 |
|
|
| 0 |
|
|
|
|
201830 |
67796 |
product |
203114 |
A |
2 |
|
|
| 0 |
|
|
|
|
201840 |
67798 |
product |
203124 |
A |
2 |
|
|
| 0 |
|
|
|
|
201873 |
67804 |
product |
203157 |
A |
2 |
|
|
| 0 |
|
|
|
|
191182 |
67754 |
product |
192520 |
A |
3 |
|
|
| 0 |
|
|
|
|
191262 |
67766 |
product |
192600 |
A |
3 |
|
|
| 0 |
|
|
|
|
191617 |
67820 |
product |
192955 |
A |
3 |
|
|
| 0 |
|
|
|
|
191629 |
67822 |
product |
192967 |
A |
3 |
|
|
| 0 |
|
|
|
|
201831 |
67796 |
product |
203115 |
A |
3 |
|
|
| 0 |
|
|
|
|
201841 |
67798 |
product |
203125 |
A |
3 |
|
|
| 0 |
|
|
|
|
201874 |
67804 |
product |
203158 |
A |
3 |
|
|
| 0 |
|
|
|
|
191183 |
67754 |
product |
192521 |
A |
4 |
|
|
| 0 |
|
|
|
|
191263 |
67766 |
product |
192601 |
A |
4 |
|
|
| 0 |
|
|
|
|
191618 |
67820 |
product |
192956 |
A |
4 |
|
|
| 0 |
|
|
|
|
191630 |
67822 |
product |
192968 |
A |
4 |
|
|
| 0 |
|
|
|
|
201832 |
67796 |
product |
203116 |
A |
4 |
|
|
| 0 |
|
|
|
|
201842 |
67798 |
product |
203126 |
A |
4 |
|
|
| 0 |
|
|
|
|
201875 |
67804 |
product |
203159 |
A |
4 |
|
|
| 0 |
|
|
|
|
191184 |
67754 |
product |
192522 |
A |
5 |
|
|
| 0 |
|
|
|
|
191264 |
67766 |
product |
192602 |
A |
5 |
|
|
| 0 |
|
|
|
|
191619 |
67820 |
product |
192957 |
A |
5 |
|
|
| 0 |
|
|
|
|
191631 |
67822 |
product |
192969 |
A |
5 |
|
|
| 0 |
|
|
|
|
201833 |
67796 |
product |
203117 |
A |
5 |
|
|
| 0 |
|
|
|
|
201843 |
67798 |
product |
203127 |
A |
5 |
|
|
| 0 |
|
|
|
|
201876 |
67804 |
product |
203160 |
A |
5 |
|
|
| 0 |
|
|
|
|
198598 |
68610 |
product |
199882 |
A |
10 |
|
|
| 0 |
|
|
|
|
198599 |
68610 |
product |
199883 |
A |
20 |
|
|
| 0 |
|
|
|
|
198600 |
68610 |
product |
199884 |
A |
30 |
|
|
| 0 |
|
|
|
|
198601 |
68610 |
product |
199885 |
A |
40 |
|
|
| 0 |
|
|
|
|
198602 |
68610 |
product |
199886 |
A |
50 |
|
|
| 0 |
|
|
|
|
198603 |
68610 |
product |
199887 |
A |
60 |
|
|
| 0 |
|
|
|
|
198604 |
68610 |
product |
199888 |
A |
70 |
|
|