Query time 0.00087
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "179.40"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "48.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": 48,
"rows_produced_per_join": 48,
"filtered": "100.00",
"index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'A') and (`cscart_db`.`cscart_images_links`.`object_id` in (33697,66982,66884,33701,26971,37553,37831,3557)))",
"cost_info": {
"read_cost": "44.35",
"eval_cost": "4.80",
"prefix_cost": "49.15",
"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": "4",
"ref": [
"cscart_db.cscart_images_links.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "38.22",
"eval_cost": "4.80",
"prefix_cost": "92.17",
"data_read_per_join": "36K"
},
"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": 48,
"filtered": "100.00",
"cost_info": {
"read_cost": "34.43",
"eval_cost": "4.80",
"prefix_cost": "131.40",
"data_read_per_join": "28K"
},
"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 |
|
|
|
|
99551 |
26971 |
product |
100903 |
A |
1 |
|
|
| 0 |
|
|
|
|
133507 |
33697 |
product |
134859 |
A |
1 |
|
|
| 0 |
|
|
|
|
133546 |
33701 |
product |
134898 |
A |
1 |
|
|
| 0 |
|
|
|
|
166024 |
37831 |
product |
167373 |
A |
1 |
|
|
| 0 |
|
|
|
|
185054 |
66884 |
product |
186400 |
A |
1 |
|
|
| 0 |
|
|
|
|
213852 |
37553 |
product |
215127 |
A |
1 |
|
|
| 0 |
|
|
|
|
99552 |
26971 |
product |
100904 |
A |
2 |
|
|
| 0 |
|
|
|
|
133508 |
33697 |
product |
134860 |
A |
2 |
|
|
| 0 |
|
|
|
|
133547 |
33701 |
product |
134899 |
A |
2 |
|
|
| 0 |
|
|
|
|
166025 |
37831 |
product |
167374 |
A |
2 |
|
|
| 0 |
|
|
|
|
185055 |
66884 |
product |
186401 |
A |
2 |
|
|
| 0 |
|
|
|
|
99553 |
26971 |
product |
100905 |
A |
3 |
|
|
| 0 |
|
|
|
|
133509 |
33697 |
product |
134861 |
A |
3 |
|
|
| 0 |
|
|
|
|
133548 |
33701 |
product |
134900 |
A |
3 |
|
|
| 0 |
|
|
|
|
166026 |
37831 |
product |
167375 |
A |
3 |
|
|
| 0 |
|
|
|
|
185056 |
66884 |
product |
186402 |
A |
3 |
|
|
| 0 |
|
|
|
|
185603 |
66982 |
product |
186949 |
A |
3 |
|
|
| 0 |
|
|
|
|
133510 |
33697 |
product |
134862 |
A |
4 |
|
|
| 0 |
|
|
|
|
133549 |
33701 |
product |
134901 |
A |
4 |
|
|
| 0 |
|
|
|
|
173275 |
26971 |
product |
174621 |
A |
4 |
|
|
| 0 |
|
|
|
|
185057 |
66884 |
product |
186403 |
A |
4 |
|
|
| 0 |
|
|
|
|
185604 |
66982 |
product |
186950 |
A |
4 |
|
|
| 0 |
|
|
|
|
214623 |
37831 |
product |
215898 |
A |
4 |
|
|
| 0 |
|
|
|
|
133511 |
33697 |
product |
134863 |
A |
5 |
|
|
| 0 |
|
|
|
|
133550 |
33701 |
product |
134902 |
A |
5 |
|
|
| 0 |
|
|
|
|
185058 |
66884 |
product |
186404 |
A |
5 |
|
|
| 0 |
|
|
|
|
185605 |
66982 |
product |
186951 |
A |
5 |
|
|
| 0 |
|
|
|
|
133512 |
33697 |
product |
134864 |
A |
6 |
|
|
| 0 |
|
|
|
|
133551 |
33701 |
product |
134903 |
A |
6 |
|
|
| 0 |
|
|
|
|
185059 |
66884 |
product |
186405 |
A |
6 |
|
|
| 0 |
|
|
|
|
185606 |
66982 |
product |
186952 |
A |
6 |
|
|
| 0 |
|
|
|
|
133513 |
33697 |
product |
134865 |
A |
7 |
|
|
| 0 |
|
|
|
|
133552 |
33701 |
product |
134904 |
A |
7 |
|
|
| 0 |
|
|
|
|
185060 |
66884 |
product |
186406 |
A |
7 |
|
|
| 0 |
|
|
|
|
213853 |
37553 |
product |
215128 |
A |
7 |
|
|
| 0 |
|
|
|
|
133514 |
33697 |
product |
134866 |
A |
8 |
|
|
| 0 |
|
|
|
|
133553 |
33701 |
product |
134905 |
A |
8 |
|
|
| 0 |
|
|
|
|
46826 |
3557 |
product |
48178 |
A |
9 |
|
|
| 0 |
|
|
|
|
173337 |
33697 |
product |
174683 |
A |
9 |
|
|
| 0 |
|
|
|
|
173341 |
33701 |
product |
174687 |
A |
9 |
|
|
| 0 |
|
|
|
|
213854 |
37553 |
product |
215129 |
A |
9 |
|
|
| 0 |
|
|
|
|
46827 |
3557 |
product |
48179 |
A |
10 |
|
|
| 0 |
|
|
|
|
213855 |
37553 |
product |
215130 |
A |
10 |
|
|
| 0 |
|
|
|
|
46828 |
3557 |
product |
48180 |
A |
11 |
|
|
| 0 |
|
|
|
|
46829 |
3557 |
product |
48181 |
A |
12 |
|
|
| 0 |
|
|
|
|
46830 |
3557 |
product |
48182 |
A |
13 |
|
|
| 0 |
|
|
|
|
46831 |
3557 |
product |
48183 |
A |
14 |
|
|
| 0 |
|
|
|
|
214533 |
3557 |
product |
215808 |
A |
16 |
|
|