Query time 0.00169
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.17"
},
"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 (66077,66079,66082,66084,66369,66371,66386,66681,66682,66683,66685,66687,66692,66694,66695,67273,68901,68904,68906,68978,68979,68980,68981,68982)))",
"cost_info": {
"read_cost": "35.44",
"eval_cost": "2.40",
"prefix_cost": "37.84",
"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": "13.72",
"eval_cost": "2.40",
"prefix_cost": "53.96",
"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": "11.82",
"eval_cost": "2.40",
"prefix_cost": "68.17",
"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 |
5057566840736_1.jpg |
1080 |
1440 |
N |
181267 |
66077 |
product |
182613 |
M |
0 |
|
182613 |
| 0 |
5057566840774_1.jpg |
1080 |
1440 |
N |
181289 |
66079 |
product |
182635 |
M |
0 |
|
182635 |
| 0 |
5057566840743_1.jpg |
1080 |
1440 |
N |
181322 |
66082 |
product |
182668 |
M |
0 |
|
182668 |
| 0 |
5057566840712_1.jpg |
1080 |
1440 |
N |
181344 |
66084 |
product |
182690 |
M |
0 |
|
182690 |
| 0 |
5057566563420-1.jpg |
1000 |
1000 |
N |
181774 |
66369 |
product |
183120 |
M |
0 |
|
183120 |
| 0 |
5057566707596_1.jpg |
1080 |
1080 |
N |
181782 |
66371 |
product |
183128 |
M |
0 |
|
183128 |
| 0 |
5057566264914_1.jpg |
1080 |
1080 |
N |
181881 |
66386 |
product |
183227 |
M |
0 |
|
183227 |
| 0 |
717489375016_9.jpg |
1080 |
1080 |
N |
183557 |
66681 |
product |
184903 |
M |
0 |
|
184903 |
| 0 |
717489375023_9.jpg |
1080 |
1080 |
N |
183567 |
66682 |
product |
184913 |
M |
0 |
|
184913 |
| 0 |
717489375030_9.jpg |
1080 |
1080 |
N |
183577 |
66683 |
product |
184923 |
M |
0 |
|
184923 |
| 0 |
717489375054_9.jpg |
1080 |
1080 |
N |
183597 |
66685 |
product |
184943 |
M |
0 |
|
184943 |
| 0 |
717489376013_9.jpg |
1080 |
1080 |
N |
183617 |
66687 |
product |
184963 |
M |
0 |
|
184963 |
| 0 |
9_oruw-v2.jpg |
1080 |
1080 |
N |
183667 |
66692 |
product |
185013 |
M |
0 |
|
185013 |
| 0 |
9_bk38-x7.jpg |
1080 |
1080 |
N |
183689 |
66694 |
product |
185035 |
M |
0 |
|
185035 |
| 0 |
9_cvwp-c5.jpg |
1080 |
1080 |
N |
183700 |
66695 |
product |
185046 |
M |
0 |
|
185046 |
| 0 |
20507656a.jpg |
3008 |
3021 |
N |
187972 |
67273 |
product |
189310 |
M |
0 |
|
189310 |
| 0 |
uc_l3kl-0f.jpg |
800 |
800 |
N |
200749 |
68901 |
product |
202033 |
M |
0 |
|
202033 |
| 0 |
uc_5r0n-1k.jpg |
800 |
800 |
N |
200781 |
68904 |
product |
202065 |
M |
0 |
|
202065 |
| 0 |
uc_q385-dh.jpg |
800 |
800 |
N |
200803 |
68906 |
product |
202087 |
M |
0 |
|
202087 |
| 0 |
uc_klda-ku.jpg |
1080 |
1440 |
N |
202037 |
68978 |
product |
203321 |
M |
0 |
|
203321 |
| 0 |
uc_v0ql-cq.jpg |
1080 |
1440 |
N |
202053 |
68980 |
product |
203337 |
M |
0 |
|
203337 |
| 0 |
uc_otwn-s1.jpg |
1080 |
1440 |
N |
202061 |
68981 |
product |
203345 |
M |
0 |
|
203345 |
| 0 |
uc_g27r-4s.jpg |
1080 |
1440 |
N |
202069 |
68982 |
product |
203353 |
M |
0 |
|
203353 |
| 0 |
uc_p95g-t1.jpg |
1080 |
1440 |
N |
202518 |
68979 |
product |
203802 |
M |
0 |
|
203802 |