Query time 0.00085
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "173.70"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "49.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": 49,
"rows_produced_per_join": 49,
"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 (33699,33706,69312,12414,39924,33717,38680,37830)))",
"cost_info": {
"read_cost": "47.45",
"eval_cost": "4.90",
"prefix_cost": "52.35",
"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": 49,
"filtered": "100.00",
"cost_info": {
"read_cost": "33.24",
"eval_cost": "4.90",
"prefix_cost": "90.49",
"data_read_per_join": "37K"
},
"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": 49,
"filtered": "100.00",
"cost_info": {
"read_cost": "29.31",
"eval_cost": "4.90",
"prefix_cost": "124.70",
"data_read_per_join": "29K"
},
"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 |
|
|
|
|
133527 |
33699 |
product |
134879 |
A |
1 |
|
|
| 0 |
|
|
|
|
133695 |
33717 |
product |
135047 |
A |
1 |
|
|
| 0 |
|
|
|
|
166017 |
37830 |
product |
167366 |
A |
1 |
|
|
| 0 |
|
|
|
|
205476 |
69312 |
product |
206760 |
A |
1 |
|
|
| 0 |
|
|
|
|
133528 |
33699 |
product |
134880 |
A |
2 |
|
|
| 0 |
|
|
|
|
133591 |
33706 |
product |
134943 |
A |
2 |
|
|
| 0 |
|
|
|
|
133696 |
33717 |
product |
135048 |
A |
2 |
|
|
| 0 |
|
|
|
|
166019 |
37830 |
product |
167368 |
A |
2 |
|
|
| 0 |
|
|
|
|
205477 |
69312 |
product |
206761 |
A |
2 |
|
|
| 0 |
|
|
|
|
133529 |
33699 |
product |
134881 |
A |
3 |
|
|
| 0 |
|
|
|
|
133592 |
33706 |
product |
134944 |
A |
3 |
|
|
| 0 |
|
|
|
|
133697 |
33717 |
product |
135049 |
A |
3 |
|
|
| 0 |
|
|
|
|
166016 |
37830 |
product |
167365 |
A |
3 |
|
|
| 0 |
|
|
|
|
205478 |
69312 |
product |
206762 |
A |
3 |
|
|
| 0 |
|
|
|
|
133530 |
33699 |
product |
134882 |
A |
4 |
|
|
| 0 |
|
|
|
|
133593 |
33706 |
product |
134945 |
A |
4 |
|
|
| 0 |
|
|
|
|
133698 |
33717 |
product |
135050 |
A |
4 |
|
|
| 0 |
|
|
|
|
166018 |
37830 |
product |
167367 |
A |
4 |
|
|
| 0 |
|
|
|
|
205479 |
69312 |
product |
206763 |
A |
4 |
|
|
| 0 |
|
|
|
|
133531 |
33699 |
product |
134883 |
A |
5 |
|
|
| 0 |
|
|
|
|
133594 |
33706 |
product |
134946 |
A |
5 |
|
|
| 0 |
|
|
|
|
133699 |
33717 |
product |
135051 |
A |
5 |
|
|
| 0 |
|
|
|
|
166020 |
37830 |
product |
167369 |
A |
5 |
|
|
| 0 |
|
|
|
|
205480 |
69312 |
product |
206764 |
A |
5 |
|
|
| 0 |
|
|
|
|
133532 |
33699 |
product |
134884 |
A |
6 |
|
|
| 0 |
|
|
|
|
133595 |
33706 |
product |
134947 |
A |
6 |
|
|
| 0 |
|
|
|
|
133700 |
33717 |
product |
135052 |
A |
6 |
|
|
| 0 |
|
|
|
|
166021 |
37830 |
product |
167370 |
A |
6 |
|
|
| 0 |
|
|
|
|
205481 |
69312 |
product |
206765 |
A |
6 |
|
|
| 0 |
|
|
|
|
133533 |
33699 |
product |
134885 |
A |
7 |
|
|
| 0 |
|
|
|
|
133596 |
33706 |
product |
134948 |
A |
7 |
|
|
| 0 |
|
|
|
|
173353 |
33717 |
product |
174699 |
A |
7 |
|
|
| 0 |
|
|
|
|
205482 |
69312 |
product |
206766 |
A |
7 |
|
|
| 0 |
|
|
|
|
214622 |
37830 |
product |
215897 |
A |
7 |
|
|
| 0 |
|
|
|
|
133534 |
33699 |
product |
134886 |
A |
8 |
|
|
| 0 |
|
|
|
|
133597 |
33706 |
product |
134949 |
A |
8 |
|
|
| 0 |
|
|
|
|
133598 |
33706 |
product |
134950 |
A |
9 |
|
|
| 0 |
|
|
|
|
173339 |
33699 |
product |
174685 |
A |
9 |
|
|
| 0 |
|
|
|
|
173345 |
33706 |
product |
174691 |
A |
10 |
|
|
| 0 |
|
|
|
|
76728 |
12414 |
product |
78080 |
A |
11 |
|
|
| 0 |
|
|
|
|
76729 |
12414 |
product |
78081 |
A |
12 |
|
|
| 0 |
|
|
|
|
76730 |
12414 |
product |
78082 |
A |
13 |
|
|
| 0 |
|
|
|
|
76731 |
12414 |
product |
78083 |
A |
14 |
|
|
| 0 |
|
|
|
|
76732 |
12414 |
product |
78084 |
A |
15 |
|
|
| 0 |
|
|
|
|
76733 |
12414 |
product |
78085 |
A |
16 |
|
|
| 0 |
|
|
|
|
214469 |
38680 |
product |
215744 |
A |
16 |
|
|
| 0 |
|
|
|
|
76734 |
12414 |
product |
78086 |
A |
17 |
|
|
| 0 |
|
|
|
|
76735 |
12414 |
product |
78087 |
A |
18 |
|
|