Query time 0.00174
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "123.72"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "23.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 23,
"rows_produced_per_join": 23,
"filtered": "100.00",
"index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'category') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (41498,41496,7224,1595,1124,5602,6554,1286,1126,1606,5778,1123,1604,2514,2632,42584,1125,2570,2489,1122,1619,1584,1291)))",
"cost_info": {
"read_cost": "47.87",
"eval_cost": "2.30",
"prefix_cost": "50.17",
"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": "3",
"ref": [
"maniamall_cscart.cscart_images_links.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.98",
"eval_cost": "2.30",
"prefix_cost": "75.46",
"data_read_per_join": "17K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y"
],
"attached_condition": "<if>(is_not_null_compl(cscart_images), (`maniamall_cscart`.`cscart_images_links`.`image_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
}
},
{
"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": [
"maniamall_cscart.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.96",
"eval_cost": "2.30",
"prefix_cost": "100.72",
"data_read_per_join": "13K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`maniamall_cscart`.`cscart_common_descriptions`.`object_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
}
}
]
}
}
}
Result
| pair_id |
object_id |
object_type |
image_id |
detailed_id |
type |
position |
image_path |
alt |
image_x |
image_y |
images_image_id |
| 12646 |
1122 |
category |
0 |
12883 |
M |
0 |
|
|
|
|
|
| 12656 |
1123 |
category |
0 |
12893 |
M |
0 |
|
|
|
|
|
| 12659 |
1124 |
category |
0 |
12896 |
M |
0 |
|
|
|
|
|
| 12668 |
1126 |
category |
0 |
12905 |
M |
0 |
|
|
|
|
|
| 15171 |
1291 |
category |
0 |
15408 |
M |
0 |
|
|
|
|
|
| 25330 |
1584 |
category |
0 |
25567 |
M |
0 |
|
|
|
|
|
| 25612 |
1604 |
category |
0 |
25849 |
M |
0 |
|
|
|
|
|
| 25744 |
1606 |
category |
0 |
25981 |
M |
0 |
|
|
|
|
|
| 26043 |
1619 |
category |
0 |
26280 |
M |
0 |
|
|
|
|
|
| 80059 |
2489 |
category |
0 |
80296 |
M |
0 |
|
|
|
|
|
| 84732 |
2570 |
category |
0 |
84969 |
M |
0 |
|
|
|
|
|
| 87124 |
2632 |
category |
0 |
87361 |
M |
0 |
|
|
|
|
|
| 381016 |
5602 |
category |
0 |
381253 |
M |
0 |
|
|
|
|
|
| 408725 |
5778 |
category |
0 |
408962 |
M |
0 |
|
|
|
|
|
| 532641 |
6554 |
category |
0 |
532878 |
M |
0 |
|
|
|
|
|
| 3878892 |
41498 |
category |
0 |
3879145 |
M |
0 |
|
|
|
|
|
| 3878913 |
41496 |
category |
0 |
3879166 |
M |
0 |
|
|
|
|
|
| 3878915 |
7224 |
category |
0 |
3879168 |
M |
0 |
|
|
|
|
|
| 3878916 |
1595 |
category |
0 |
3879169 |
M |
0 |
|
|
|
|
|
| 3878917 |
1286 |
category |
0 |
3879170 |
M |
0 |
|
|
|
|
|
| 3878920 |
2514 |
category |
0 |
3879173 |
M |
0 |
|
|
|
|
|
| 3878922 |
1125 |
category |
0 |
3879175 |
M |
0 |
|
|
|
|
|