Query time 0.00094
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "133.17"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "45.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": 45,
"rows_produced_per_join": 45,
"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,3562,32163,67972,28568,33697,33698,68615)))",
"cost_info": {
"read_cost": "30.47",
"eval_cost": "4.50",
"prefix_cost": "34.97",
"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": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.12",
"eval_cost": "4.50",
"prefix_cost": "63.59",
"data_read_per_join": "34K"
},
"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": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.08",
"eval_cost": "4.50",
"prefix_cost": "88.17",
"data_read_per_join": "26K"
},
"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 |
|
|
|
|
106632 |
28568 |
product |
107984 |
A |
1 |
|
|
| 0 |
|
|
|
|
125814 |
32163 |
product |
127166 |
A |
1 |
|
|
| 0 |
|
|
|
|
133507 |
33697 |
product |
134859 |
A |
1 |
|
|
| 0 |
|
|
|
|
208653 |
33698 |
product |
209928 |
A |
1 |
|
|
| 0 |
|
|
|
|
106633 |
28568 |
product |
107985 |
A |
2 |
|
|
| 0 |
|
|
|
|
133508 |
33697 |
product |
134860 |
A |
2 |
|
|
| 0 |
|
|
|
|
192763 |
67972 |
product |
194101 |
A |
2 |
|
|
| 0 |
|
|
|
|
208654 |
33698 |
product |
209929 |
A |
2 |
|
|
| 0 |
|
|
|
|
214375 |
32163 |
product |
215650 |
A |
2 |
|
|
| 0 |
|
|
|
|
106634 |
28568 |
product |
107986 |
A |
3 |
|
|
| 0 |
|
|
|
|
133509 |
33697 |
product |
134861 |
A |
3 |
|
|
| 0 |
|
|
|
|
192764 |
67972 |
product |
194102 |
A |
3 |
|
|
| 0 |
|
|
|
|
208655 |
33698 |
product |
209930 |
A |
3 |
|
|
| 0 |
|
|
|
|
106635 |
28568 |
product |
107987 |
A |
4 |
|
|
| 0 |
|
|
|
|
133510 |
33697 |
product |
134862 |
A |
4 |
|
|
| 0 |
|
|
|
|
192765 |
67972 |
product |
194103 |
A |
4 |
|
|
| 0 |
|
|
|
|
208656 |
33698 |
product |
209931 |
A |
4 |
|
|
| 0 |
|
|
|
|
106636 |
28568 |
product |
107988 |
A |
5 |
|
|
| 0 |
|
|
|
|
133511 |
33697 |
product |
134863 |
A |
5 |
|
|
| 0 |
|
|
|
|
208657 |
33698 |
product |
209932 |
A |
5 |
|
|
| 0 |
|
|
|
|
106637 |
28568 |
product |
107989 |
A |
6 |
|
|
| 0 |
|
|
|
|
133512 |
33697 |
product |
134864 |
A |
6 |
|
|
| 0 |
|
|
|
|
208658 |
33698 |
product |
209933 |
A |
6 |
|
|
| 0 |
|
|
|
|
133513 |
33697 |
product |
134865 |
A |
7 |
|
|
| 0 |
|
|
|
|
163689 |
37518 |
product |
165041 |
A |
7 |
|
|
| 0 |
|
|
|
|
173298 |
28568 |
product |
174644 |
A |
7 |
|
|
| 0 |
|
|
|
|
208659 |
33698 |
product |
209934 |
A |
7 |
|
|
| 0 |
|
|
|
|
133514 |
33697 |
product |
134866 |
A |
8 |
|
|
| 0 |
|
|
|
|
163690 |
37518 |
product |
165042 |
A |
8 |
|
|
| 0 |
|
|
|
|
163691 |
37518 |
product |
165043 |
A |
9 |
|
|
| 0 |
|
|
|
|
173337 |
33697 |
product |
174683 |
A |
9 |
|
|
| 0 |
|
|
|
|
46803 |
3562 |
product |
48155 |
A |
10 |
|
|
| 0 |
|
|
|
|
163692 |
37518 |
product |
165044 |
A |
10 |
|
|
| 0 |
|
|
|
|
198633 |
68615 |
product |
199917 |
A |
10 |
|
|
| 0 |
|
|
|
|
46804 |
3562 |
product |
48156 |
A |
11 |
|
|
| 0 |
|
|
|
|
163693 |
37518 |
product |
165045 |
A |
11 |
|
|
| 0 |
|
|
|
|
46805 |
3562 |
product |
48157 |
A |
12 |
|
|
| 0 |
|
|
|
|
163694 |
37518 |
product |
165046 |
A |
12 |
|
|
| 0 |
|
|
|
|
46806 |
3562 |
product |
48158 |
A |
13 |
|
|
| 0 |
|
|
|
|
173304 |
37518 |
product |
174650 |
A |
13 |
|
|
| 0 |
|
|
|
|
46807 |
3562 |
product |
48159 |
A |
14 |
|
|
| 0 |
|
|
|
|
46808 |
3562 |
product |
48160 |
A |
15 |
|
|
| 0 |
|
|
|
|
46809 |
3562 |
product |
48161 |
A |
16 |
|
|
| 0 |
|
|
|
|
214531 |
3562 |
product |
215806 |
A |
18 |
|
|
| 0 |
|
|
|
|
198634 |
68615 |
product |
199918 |
A |
20 |
|
|