Query time 0.00107
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "78.69"
},
"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 (65070,69192,68307,34809,69790,70134,11758,65190,69791,65192,6868,8928,11756,11757,11759,69733,69741,69778,65163,65184,38456,65178,64480,65177)))",
"cost_info": {
"read_cost": "24.99",
"eval_cost": "2.40",
"prefix_cost": "27.39",
"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.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.39",
"eval_cost": "2.40",
"prefix_cost": "42.18",
"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": "10.11",
"eval_cost": "2.40",
"prefix_cost": "54.69",
"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 |
|
|
|
|
116328 |
11756 |
product |
117680 |
M |
0 |
|
|
| 0 |
|
|
|
|
140673 |
34809 |
product |
142025 |
M |
0 |
|
|
| 0 |
|
|
|
|
172137 |
64480 |
product |
173483 |
M |
0 |
|
|
| 0 |
|
|
|
|
174469 |
65070 |
product |
175815 |
M |
0 |
|
|
| 0 |
|
|
|
|
175484 |
65177 |
product |
176830 |
M |
0 |
|
|
| 0 |
|
|
|
|
175492 |
65178 |
product |
176838 |
M |
0 |
|
|
| 0 |
|
|
|
|
175538 |
65184 |
product |
176884 |
M |
0 |
|
|
| 0 |
|
|
|
|
175579 |
65190 |
product |
176925 |
M |
0 |
|
|
| 0 |
|
|
|
|
175599 |
65192 |
product |
176945 |
M |
0 |
|
|
| 0 |
|
|
|
|
195584 |
6868 |
product |
196922 |
M |
0 |
|
|
| 0 |
|
|
|
|
195605 |
8928 |
product |
196943 |
M |
0 |
|
|
| 0 |
|
|
|
|
201217 |
38456 |
product |
202501 |
M |
0 |
|
|
| 0 |
|
|
|
|
204120 |
69192 |
product |
205404 |
M |
0 |
|
|
| 0 |
|
|
|
|
205741 |
68307 |
product |
207025 |
M |
0 |
|
|
| 0 |
|
|
|
|
209221 |
69733 |
product |
210496 |
M |
0 |
|
|
| 0 |
|
|
|
|
209253 |
69741 |
product |
210528 |
M |
0 |
|
|
| 0 |
|
|
|
|
209530 |
69790 |
product |
210805 |
M |
0 |
|
|
| 0 |
|
|
|
|
209534 |
69791 |
product |
210809 |
M |
0 |
|
|
| 0 |
|
|
|
|
213688 |
70134 |
product |
214963 |
M |
0 |
|
|
| 0 |
|
|
|
|
210769 |
69778 |
product |
212044 |
M |
3 |
|
|
| 0 |
|
|
|
|
115713 |
11757 |
product |
117065 |
M |
5 |
|
|
| 0 |
|
|
|
|
214847 |
65163 |
product |
216122 |
M |
5 |
|
|
| 0 |
|
|
|
|
115703 |
11759 |
product |
117055 |
M |
6 |
|
|
| 0 |
|
|
|
|
115708 |
11758 |
product |
117060 |
M |
6 |
|
|