Query time 0.00070
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "208.92"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "52.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": 52,
"rows_produced_per_join": 52,
"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,36139,28568,3965,28569,65693,28570,3967)))",
"cost_info": {
"read_cost": "55.98",
"eval_cost": "5.20",
"prefix_cost": "61.18",
"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": 52,
"filtered": "100.00",
"cost_info": {
"read_cost": "44.34",
"eval_cost": "5.20",
"prefix_cost": "110.72",
"data_read_per_join": "39K"
},
"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": 52,
"filtered": "100.00",
"cost_info": {
"read_cost": "41.00",
"eval_cost": "5.20",
"prefix_cost": "156.92",
"data_read_per_join": "30K"
},
"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 |
|
|
|
|
106639 |
28569 |
product |
107991 |
A |
1 |
|
|
| 0 |
|
|
|
|
106646 |
28570 |
product |
107998 |
A |
1 |
|
|
| 0 |
|
|
|
|
153545 |
36139 |
product |
154897 |
A |
1 |
|
|
| 0 |
|
|
|
|
178849 |
65693 |
product |
180195 |
A |
1 |
|
|
| 0 |
|
|
|
|
106633 |
28568 |
product |
107985 |
A |
2 |
|
|
| 0 |
|
|
|
|
106640 |
28569 |
product |
107992 |
A |
2 |
|
|
| 0 |
|
|
|
|
106647 |
28570 |
product |
107999 |
A |
2 |
|
|
| 0 |
|
|
|
|
178850 |
65693 |
product |
180196 |
A |
2 |
|
|
| 0 |
|
|
|
|
106634 |
28568 |
product |
107986 |
A |
3 |
|
|
| 0 |
|
|
|
|
106641 |
28569 |
product |
107993 |
A |
3 |
|
|
| 0 |
|
|
|
|
106648 |
28570 |
product |
108000 |
A |
3 |
|
|
| 0 |
|
|
|
|
178851 |
65693 |
product |
180197 |
A |
3 |
|
|
| 0 |
|
|
|
|
106635 |
28568 |
product |
107987 |
A |
4 |
|
|
| 0 |
|
|
|
|
106642 |
28569 |
product |
107994 |
A |
4 |
|
|
| 0 |
|
|
|
|
106649 |
28570 |
product |
108001 |
A |
4 |
|
|
| 0 |
|
|
|
|
178852 |
65693 |
product |
180198 |
A |
4 |
|
|
| 0 |
|
|
|
|
45023 |
3965 |
product |
46375 |
A |
5 |
|
|
| 0 |
|
|
|
|
106636 |
28568 |
product |
107988 |
A |
5 |
|
|
| 0 |
|
|
|
|
106643 |
28569 |
product |
107995 |
A |
5 |
|
|
| 0 |
|
|
|
|
106650 |
28570 |
product |
108002 |
A |
5 |
|
|
| 0 |
|
|
|
|
178853 |
65693 |
product |
180199 |
A |
5 |
|
|
| 0 |
|
|
|
|
45024 |
3965 |
product |
46376 |
A |
6 |
|
|
| 0 |
|
|
|
|
106637 |
28568 |
product |
107989 |
A |
6 |
|
|
| 0 |
|
|
|
|
106644 |
28569 |
product |
107996 |
A |
6 |
|
|
| 0 |
|
|
|
|
106651 |
28570 |
product |
108003 |
A |
6 |
|
|
| 0 |
|
|
|
|
45025 |
3965 |
product |
46377 |
A |
7 |
|
|
| 0 |
|
|
|
|
163689 |
37518 |
product |
165041 |
A |
7 |
|
|
| 0 |
|
|
|
|
173298 |
28568 |
product |
174644 |
A |
7 |
|
|
| 0 |
|
|
|
|
173299 |
28569 |
product |
174645 |
A |
7 |
|
|
| 0 |
|
|
|
|
45026 |
3965 |
product |
46378 |
A |
8 |
|
|
| 0 |
|
|
|
|
45031 |
3967 |
product |
46383 |
A |
8 |
|
|
| 0 |
|
|
|
|
163690 |
37518 |
product |
165042 |
A |
8 |
|
|
| 0 |
|
|
|
|
45027 |
3965 |
product |
46379 |
A |
9 |
|
|
| 0 |
|
|
|
|
45032 |
3967 |
product |
46384 |
A |
9 |
|
|
| 0 |
|
|
|
|
163691 |
37518 |
product |
165043 |
A |
9 |
|
|
| 0 |
|
|
|
|
45028 |
3965 |
product |
46380 |
A |
10 |
|
|
| 0 |
|
|
|
|
45033 |
3967 |
product |
46385 |
A |
10 |
|
|
| 0 |
|
|
|
|
153546 |
36139 |
product |
154898 |
A |
10 |
|
|
| 0 |
|
|
|
|
163692 |
37518 |
product |
165044 |
A |
10 |
|
|
| 0 |
|
|
|
|
45029 |
3965 |
product |
46381 |
A |
11 |
|
|
| 0 |
|
|
|
|
45034 |
3967 |
product |
46386 |
A |
11 |
|
|
| 0 |
|
|
|
|
153547 |
36139 |
product |
154899 |
A |
11 |
|
|
| 0 |
|
|
|
|
163693 |
37518 |
product |
165045 |
A |
11 |
|
|
| 0 |
|
|
|
|
25510 |
3965 |
product |
26862 |
A |
12 |
|
|
| 0 |
|
|
|
|
45035 |
3967 |
product |
46387 |
A |
12 |
|
|
| 0 |
|
|
|
|
153548 |
36139 |
product |
154900 |
A |
12 |
|
|
| 0 |
|
|
|
|
163694 |
37518 |
product |
165046 |
A |
12 |
|
|
| 0 |
|
|
|
|
25509 |
3967 |
product |
26861 |
A |
13 |
|
|
| 0 |
|
|
|
|
153549 |
36139 |
product |
154901 |
A |
13 |
|
|
| 0 |
|
|
|
|
173304 |
37518 |
product |
174650 |
A |
13 |
|
|
| 0 |
|
|
|
|
173302 |
36139 |
product |
174648 |
A |
14 |
|
|