Query time 0.00389
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "138.11"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "26.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": 26,
"rows_produced_per_join": 26,
"filtered": "100.00",
"index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (1587021,435102,796340,2045191,2071779,1395208,1080125,1717796,1717787,1717795,1395206,1717793,1717794,2055664,2055661,2045209,2045210,2045195,2045188,2045197,2071769,2071771,2071772,1770704,1483807,1700015)))",
"cost_info": {
"read_cost": "52.87",
"eval_cost": "2.60",
"prefix_cost": "55.47",
"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": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.85",
"eval_cost": "2.60",
"prefix_cost": "83.92",
"data_read_per_join": "19K"
},
"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": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.59",
"eval_cost": "2.60",
"prefix_cost": "112.11",
"data_read_per_join": "15K"
},
"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 |
| 691494 |
435102 |
product |
0 |
691731 |
M |
0 |
|
|
|
|
|
| 1214892 |
796340 |
product |
0 |
1215129 |
M |
0 |
|
|
|
|
|
| 1670014 |
1080125 |
product |
0 |
1670252 |
M |
0 |
|
|
|
|
|
| 2419937 |
1395206 |
product |
0 |
2420189 |
M |
0 |
|
|
|
|
|
| 2419942 |
1395208 |
product |
0 |
2420194 |
M |
0 |
|
|
|
|
|
| 2986553 |
1483807 |
product |
0 |
2986806 |
M |
0 |
|
|
|
|
|
| 3436936 |
1587021 |
product |
0 |
3437189 |
M |
0 |
|
|
|
|
|
| 3816610 |
1700015 |
product |
0 |
3816863 |
M |
0 |
|
|
|
|
|
| 3892259 |
1717787 |
product |
0 |
3892512 |
M |
0 |
|
|
|
|
|
| 3892291 |
1717793 |
product |
0 |
3892544 |
M |
0 |
|
|
|
|
|
| 3892298 |
1717794 |
product |
0 |
3892551 |
M |
0 |
|
|
|
|
|
| 3892299 |
1717795 |
product |
0 |
3892552 |
M |
0 |
|
|
|
|
|
| 3892304 |
1717796 |
product |
0 |
3892557 |
M |
0 |
|
|
|
|
|
| 4085287 |
1770704 |
product |
0 |
4085540 |
M |
0 |
|
|
|
|
|
| 4868545 |
2045188 |
product |
0 |
4868798 |
M |
0 |
|
|
|
|
|
| 4868553 |
2045191 |
product |
0 |
4868806 |
M |
0 |
|
|
|
|
|
| 4868560 |
2045195 |
product |
0 |
4868813 |
M |
0 |
|
|
|
|
|
| 4868567 |
2045197 |
product |
0 |
4868820 |
M |
0 |
|
|
|
|
|
| 4868602 |
2045209 |
product |
0 |
4868855 |
M |
0 |
|
|
|
|
|
| 4868607 |
2045210 |
product |
0 |
4868860 |
M |
0 |
|
|
|
|
|
| 4918339 |
2055661 |
product |
0 |
4918592 |
M |
0 |
|
|
|
|
|
| 4918352 |
2055664 |
product |
0 |
4918605 |
M |
0 |
|
|
|
|
|
| 4981532 |
2071769 |
product |
0 |
4981785 |
M |
0 |
|
|
|
|
|
| 4981545 |
2071771 |
product |
0 |
4981798 |
M |
0 |
|
|
|
|
|
| 4981550 |
2071772 |
product |
0 |
4981803 |
M |
0 |
|
|
|
|
|
| 4981578 |
2071779 |
product |
0 |
4981831 |
M |
0 |
|
|
|
|
|