Query time 0.00148
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "113.56"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "24.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": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'M') and (`cscart_db`.`cscart_images_links`.`object_id` in (69606,67737,67768,67471,69579,66440,67765,35247,65052,66438,66441,7978,7979,7982,7983,7984,13125,13126,13127,13128,13129,35244,35245,65053)))",
"cost_info": {
"read_cost": "42.69",
"eval_cost": "2.40",
"prefix_cost": "45.09",
"data_read_per_join": "2K"
},
"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.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.38",
"eval_cost": "2.40",
"prefix_cost": "67.87",
"data_read_per_join": "18K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.29",
"eval_cost": "2.40",
"prefix_cost": "89.56",
"data_read_per_join": "14K"
},
"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 |
Rose_Qaurtz_Gua.png |
540 |
540 |
N |
20697 |
7978 |
product |
22049 |
M |
0 |
|
22049 |
| 0 |
75_540x.png |
540 |
540 |
N |
20701 |
7979 |
product |
22053 |
M |
0 |
|
22053 |
| 0 |
2.png |
540 |
540 |
N |
20710 |
7982 |
product |
22062 |
M |
0 |
|
22062 |
| 0 |
R3_540x.png |
540 |
540 |
N |
20714 |
7983 |
product |
22066 |
M |
0 |
|
22066 |
| 0 |
01_540x.jpg |
540 |
540 |
N |
20719 |
7984 |
product |
22071 |
M |
0 |
|
22071 |
| 0 |
1_ya97-yn.png |
1500 |
1291 |
N |
46612 |
13125 |
product |
47964 |
M |
0 |
|
47964 |
| 0 |
1_z3cp-h9.png |
1500 |
1291 |
N |
46617 |
13126 |
product |
47969 |
M |
0 |
|
47969 |
| 0 |
1_3bo3-pc.png |
1500 |
1291 |
N |
46622 |
13127 |
product |
47974 |
M |
0 |
|
47974 |
| 0 |
1_68mh-8v.png |
1500 |
1291 |
N |
46628 |
13128 |
product |
47980 |
M |
0 |
|
47980 |
| 0 |
1_90eb-cn.png |
1500 |
1291 |
N |
46633 |
13129 |
product |
47985 |
M |
0 |
|
47985 |
| 0 |
1_8o8o-ol.jpg |
1200 |
1500 |
N |
143384 |
35244 |
product |
144736 |
M |
0 |
|
144736 |
| 0 |
1_zgbr-yq.jpg |
864 |
1080 |
N |
143390 |
35245 |
product |
144742 |
M |
0 |
|
144742 |
| 0 |
1_dikh-yh.jpg |
1200 |
1500 |
N |
143402 |
35247 |
product |
144754 |
M |
0 |
|
144754 |
| 0 |
8908025164030_1.jpeg |
800 |
800 |
N |
174240 |
65052 |
product |
175586 |
M |
0 |
|
175586 |
| 0 |
8908025164023_1.jpeg |
800 |
800 |
N |
174248 |
65053 |
product |
175594 |
M |
0 |
|
175594 |
| 0 |
8906132699001__1__d7y0-3b.jpg |
1000 |
1000 |
N |
182515 |
66438 |
product |
183861 |
M |
0 |
|
183861 |
| 0 |
8906132698813__2__qhf4-6j.png |
1500 |
1500 |
N |
182532 |
66440 |
product |
183878 |
M |
0 |
|
183878 |
| 0 |
8906132698806__1_.png |
1500 |
1500 |
N |
182538 |
66441 |
product |
183884 |
M |
0 |
|
183884 |
| 0 |
Main_1ibt-bj.jpg |
1500 |
1500 |
N |
188551 |
67471 |
product |
189889 |
M |
0 |
|
189889 |
| 0 |
2_doag-6v.jpg |
1100 |
1100 |
N |
191056 |
67737 |
product |
192394 |
M |
0 |
|
192394 |
| 0 |
1_afgw-32.jpg |
1501 |
1501 |
N |
191249 |
67765 |
product |
192587 |
M |
0 |
|
192587 |
| 0 |
Facial_Razor_Pack_of_3_2.jpg |
2000 |
2000 |
N |
191272 |
67768 |
product |
192610 |
M |
0 |
|
192610 |
| 0 |
1_d4tf-ry.png |
512 |
512 |
N |
208518 |
69579 |
product |
209793 |
M |
0 |
|
209793 |
| 0 |
9df77677-fd9e-4d8a-96b8-d90219738387-Untitled_20design_20_81_.png |
512 |
512 |
N |
208734 |
69606 |
product |
210009 |
M |
0 |
|
210009 |