Query time 0.00534
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "239.83"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "47.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": 47,
"rows_produced_per_join": 47,
"filtered": "100.00",
"index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'A') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (614832,1232975,588096,880671,1088508,697953,796373,591739,612280,1120145,695183,600012,614835,1302601,590335,866417,589124,696523,593274,1232966,1232977,696950,621062,596399,588307,1434961,590366,697334,590358,594343,866380,1233023,562160,694679,595794,589041)))",
"cost_info": {
"read_cost": "85.47",
"eval_cost": "4.70",
"prefix_cost": "90.17",
"data_read_per_join": "4K"
},
"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": 47,
"filtered": "100.00",
"cost_info": {
"read_cost": "46.78",
"eval_cost": "4.70",
"prefix_cost": "141.65",
"data_read_per_join": "35K"
},
"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": 47,
"filtered": "100.00",
"cost_info": {
"read_cost": "46.48",
"eval_cost": "4.70",
"prefix_cost": "192.83",
"data_read_per_join": "27K"
},
"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 |
| 885086 |
562160 |
product |
0 |
885323 |
A |
0 |
|
|
|
|
|
| 885087 |
562160 |
product |
0 |
885324 |
A |
0 |
|
|
|
|
|
| 944769 |
600012 |
product |
0 |
945006 |
A |
0 |
|
|
|
|
|
| 944770 |
600012 |
product |
0 |
945007 |
A |
0 |
|
|
|
|
|
| 944771 |
600012 |
product |
0 |
945008 |
A |
0 |
|
|
|
|
|
| 961871 |
614835 |
product |
0 |
962108 |
A |
0 |
|
|
|
|
|
| 975341 |
621062 |
product |
0 |
975578 |
A |
0 |
|
|
|
|
|
| 1093906 |
696523 |
product |
0 |
1094143 |
A |
0 |
|
|
|
|
|
| 1094590 |
696950 |
product |
0 |
1094827 |
A |
0 |
|
|
|
|
|
| 1095185 |
697334 |
product |
0 |
1095422 |
A |
0 |
|
|
|
|
|
| 1770479 |
1120145 |
product |
0 |
1770718 |
A |
0 |
|
|
|
|
|
| 1770480 |
1120145 |
product |
0 |
1770719 |
A |
0 |
|
|
|
|
|
| 1770481 |
1120145 |
product |
0 |
1770720 |
A |
0 |
|
|
|
|
|
| 1770482 |
1120145 |
product |
0 |
1770721 |
A |
0 |
|
|
|
|
|
| 2119855 |
1302601 |
product |
0 |
2120107 |
A |
0 |
|
|
|
|
|
| 2119856 |
1302601 |
product |
0 |
2120108 |
A |
0 |
|
|
|
|
|
| 2119857 |
1302601 |
product |
0 |
2120109 |
A |
0 |
|
|
|
|
|
| 2581018 |
1434961 |
product |
0 |
2581271 |
A |
0 |
|
|
|
|
|
| 2581019 |
1434961 |
product |
0 |
2581272 |
A |
0 |
|
|
|
|
|
| 2581020 |
1434961 |
product |
0 |
2581273 |
A |
0 |
|
|
|
|
|
| 2581021 |
1434961 |
product |
0 |
2581274 |
A |
0 |
|
|
|
|
|