Query time 0.00065
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "51.58"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "11.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": 11,
"rows_produced_per_join": 11,
"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 (65146,65190,65192,65163,65184,65181,65179,65178,65176,65175,65177)))",
"cost_info": {
"read_cost": "19.36",
"eval_cost": "1.10",
"prefix_cost": "20.46",
"data_read_per_join": "1K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.27",
"eval_cost": "1.10",
"prefix_cost": "30.83",
"data_read_per_join": "8K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.65",
"eval_cost": "1.10",
"prefix_cost": "40.58",
"data_read_per_join": "6K"
},
"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 |
1_r2fu-7s.jpg |
1500 |
1500 |
N |
175234 |
65146 |
product |
176580 |
M |
0 |
|
176580 |
| 0 |
1_rilc-pp.jpg |
2000 |
2000 |
N |
175467 |
65175 |
product |
176813 |
M |
0 |
|
176813 |
| 0 |
1_i61y-pt.jpg |
1200 |
1200 |
N |
175476 |
65176 |
product |
176822 |
M |
0 |
|
176822 |
| 0 |
1_po3h-5y.jpg |
1200 |
1200 |
N |
175484 |
65177 |
product |
176830 |
M |
0 |
|
176830 |
| 0 |
1_kfgv-p6.jpg |
1200 |
1200 |
N |
175492 |
65178 |
product |
176838 |
M |
0 |
|
176838 |
| 0 |
1_qbhu-z6.jpg |
1200 |
1200 |
N |
175501 |
65179 |
product |
176847 |
M |
0 |
|
176847 |
| 0 |
1_ruf7-xh.jpg |
1200 |
1200 |
N |
175515 |
65181 |
product |
176861 |
M |
0 |
|
176861 |
| 0 |
1_gfw2-c5.jpg |
1200 |
1200 |
N |
175538 |
65184 |
product |
176884 |
M |
0 |
|
176884 |
| 0 |
1_23tf-vy.jpg |
1001 |
1001 |
N |
175579 |
65190 |
product |
176925 |
M |
0 |
|
176925 |
| 0 |
1_h8dz-o6.png |
2000 |
2000 |
N |
175599 |
65192 |
product |
176945 |
M |
0 |
|
176945 |
| 0 |
Power_Protein_4lb_Front.jpg |
1500 |
1500 |
N |
214847 |
65163 |
product |
216122 |
M |
5 |
|
216122 |