Query time 0.00296
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "203.07"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "38.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": 38,
"rows_produced_per_join": 38,
"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 (884,2645,5554,15016,28650,14939,7307,14966,15013,28652,2995,28563,28651,972,7132,3100,14928,883,28614,28653,5548,1449,28654,2464,848,984,3662,5077,1017,5190,28020,967,6766,23396,6333,30411,29114,30093)))",
"cost_info": {
"read_cost": "77.76",
"eval_cost": "3.80",
"prefix_cost": "81.56",
"data_read_per_join": "3K"
},
"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": 38,
"filtered": "100.00",
"cost_info": {
"read_cost": "37.97",
"eval_cost": "3.80",
"prefix_cost": "123.33",
"data_read_per_join": "29K"
},
"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": 38,
"filtered": "100.00",
"cost_info": {
"read_cost": "37.94",
"eval_cost": "3.80",
"prefix_cost": "165.07",
"data_read_per_join": "22K"
},
"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 |
| 87313 |
2645 |
category |
0 |
87550 |
M |
0 |
|
|
|
|
|
| 107259 |
1017 |
category |
0 |
107496 |
M |
0 |
|
|
|
|
|
| 107262 |
3100 |
category |
0 |
107499 |
M |
0 |
|
|
|
|
|
| 107508 |
1449 |
category |
0 |
107745 |
M |
0 |
|
|
|
|
|
| 107537 |
884 |
category |
0 |
107774 |
M |
0 |
|
|
|
|
|
| 107567 |
883 |
category |
0 |
107804 |
M |
0 |
|
|
|
|
|
| 179227 |
967 |
category |
0 |
179464 |
M |
0 |
|
|
|
|
|
| 179233 |
848 |
category |
0 |
179470 |
M |
0 |
|
|
|
|
|
| 179249 |
984 |
category |
0 |
179486 |
M |
0 |
|
|
|
|
|
| 179250 |
2464 |
category |
0 |
179487 |
M |
0 |
|
|
|
|
|
| 179308 |
972 |
category |
0 |
179545 |
M |
0 |
|
|
|
|
|
| 323213 |
5190 |
category |
0 |
323450 |
M |
0 |
|
|
|
|
|
| 360120 |
5554 |
category |
0 |
360357 |
M |
0 |
|
|
|
|
|
| 549402 |
6333 |
category |
0 |
549639 |
M |
0 |
|
|
|
|
|
| 566482 |
3662 |
category |
0 |
566719 |
M |
0 |
|
|
|
|
|
| 575858 |
6766 |
category |
0 |
576095 |
M |
0 |
|
|
|
|
|
| 694691 |
5548 |
category |
0 |
694928 |
M |
0 |
|
|
|
|
|
| 694692 |
7132 |
category |
0 |
694929 |
M |
0 |
|
|
|
|
|
| 1365721 |
14928 |
category |
0 |
1365958 |
M |
0 |
|
|
|
|
|
| 1371590 |
15016 |
category |
0 |
1371827 |
M |
0 |
|
|
|
|
|
| 1741389 |
28020 |
category |
0 |
1741628 |
M |
0 |
|
|
|
|
|
| 1822119 |
28563 |
category |
0 |
1822371 |
M |
0 |
|
|
|
|
|
| 1824574 |
14966 |
category |
0 |
1824826 |
M |
0 |
|
|
|
|
|
| 1824575 |
15013 |
category |
0 |
1824827 |
M |
0 |
|
|
|
|
|
| 1824576 |
14939 |
category |
0 |
1824828 |
M |
0 |
|
|
|
|
|
| 1839044 |
28614 |
category |
0 |
1839296 |
M |
0 |
|
|
|
|
|
| 1839313 |
23396 |
category |
0 |
1839565 |
M |
0 |
|
|
|
|
|
| 1844362 |
7307 |
category |
0 |
1844614 |
M |
0 |
|
|
|
|
|
| 1844380 |
28650 |
category |
0 |
1844632 |
M |
0 |
|
|
|
|
|
| 1844381 |
28651 |
category |
0 |
1844633 |
M |
0 |
|
|
|
|
|
| 1844382 |
28652 |
category |
0 |
1844634 |
M |
0 |
|
|
|
|
|
| 1844383 |
28653 |
category |
0 |
1844635 |
M |
0 |
|
|
|
|
|
| 1844384 |
28654 |
category |
0 |
1844636 |
M |
0 |
|
|
|
|
|
| 1844391 |
2995 |
category |
0 |
1844643 |
M |
0 |
|
|
|
|
|
| 1865314 |
5077 |
category |
0 |
1865566 |
M |
0 |
|
|
|
|
|
| 1932370 |
29114 |
category |
0 |
1932622 |
M |
0 |
|
|
|
|
|
| 2084947 |
30093 |
category |
0 |
2085199 |
M |
0 |
|
|
|
|
|
| 4477858 |
30411 |
category |
0 |
4478111 |
M |
0 |
|
|
|
|
|