Query time 0.00099
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "142.65"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "49.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": 49,
"rows_produced_per_join": 49,
"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 (13133,19742,19744,19748,19755,64690,64692,64693,65499,66366,66368,7985)))",
"cost_info": {
"read_cost": "33.27",
"eval_cost": "4.90",
"prefix_cost": "38.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": "4",
"ref": [
"cscart_db.cscart_images_links.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 49,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.42",
"eval_cost": "4.90",
"prefix_cost": "68.49",
"data_read_per_join": "37K"
},
"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": 49,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.26",
"eval_cost": "4.90",
"prefix_cost": "93.65",
"data_read_per_join": "29K"
},
"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 |
|
|
|
|
20722 |
7985 |
product |
22074 |
A |
1 |
|
|
| 0 |
|
|
|
|
46660 |
13133 |
product |
48012 |
A |
1 |
|
|
| 0 |
|
|
|
|
76456 |
19742 |
product |
77808 |
A |
1 |
|
|
| 0 |
|
|
|
|
76472 |
19744 |
product |
77824 |
A |
1 |
|
|
| 0 |
|
|
|
|
76504 |
19748 |
product |
77856 |
A |
1 |
|
|
| 0 |
|
|
|
|
76560 |
19755 |
product |
77912 |
A |
1 |
|
|
| 0 |
|
|
|
|
177309 |
65499 |
product |
178655 |
A |
1 |
|
|
| 0 |
|
|
|
|
181761 |
66366 |
product |
183107 |
A |
1 |
|
|
| 0 |
|
|
|
|
181771 |
66368 |
product |
183117 |
A |
1 |
|
|
| 0 |
|
|
|
|
20723 |
7985 |
product |
22075 |
A |
2 |
|
|
| 0 |
|
|
|
|
46661 |
13133 |
product |
48013 |
A |
2 |
|
|
| 0 |
|
|
|
|
76457 |
19742 |
product |
77809 |
A |
2 |
|
|
| 0 |
|
|
|
|
76473 |
19744 |
product |
77825 |
A |
2 |
|
|
| 0 |
|
|
|
|
76505 |
19748 |
product |
77857 |
A |
2 |
|
|
| 0 |
|
|
|
|
76561 |
19755 |
product |
77913 |
A |
2 |
|
|
| 0 |
|
|
|
|
177310 |
65499 |
product |
178656 |
A |
2 |
|
|
| 0 |
|
|
|
|
181762 |
66366 |
product |
183108 |
A |
2 |
|
|
| 0 |
|
|
|
|
181772 |
66368 |
product |
183118 |
A |
2 |
|
|
| 0 |
|
|
|
|
46662 |
13133 |
product |
48014 |
A |
3 |
|
|
| 0 |
|
|
|
|
76458 |
19742 |
product |
77810 |
A |
3 |
|
|
| 0 |
|
|
|
|
76474 |
19744 |
product |
77826 |
A |
3 |
|
|
| 0 |
|
|
|
|
76506 |
19748 |
product |
77858 |
A |
3 |
|
|
| 0 |
|
|
|
|
76562 |
19755 |
product |
77914 |
A |
3 |
|
|
| 0 |
|
|
|
|
177311 |
65499 |
product |
178657 |
A |
3 |
|
|
| 0 |
|
|
|
|
181763 |
66366 |
product |
183109 |
A |
3 |
|
|
| 0 |
|
|
|
|
181773 |
66368 |
product |
183119 |
A |
3 |
|
|
| 0 |
|
|
|
|
46663 |
13133 |
product |
48015 |
A |
4 |
|
|
| 0 |
|
|
|
|
76459 |
19742 |
product |
77811 |
A |
4 |
|
|
| 0 |
|
|
|
|
76475 |
19744 |
product |
77827 |
A |
4 |
|
|
| 0 |
|
|
|
|
76507 |
19748 |
product |
77859 |
A |
4 |
|
|
| 0 |
|
|
|
|
76563 |
19755 |
product |
77915 |
A |
4 |
|
|
| 0 |
|
|
|
|
181764 |
66366 |
product |
183110 |
A |
4 |
|
|
| 0 |
|
|
|
|
46664 |
13133 |
product |
48016 |
A |
5 |
|
|
| 0 |
|
|
|
|
76460 |
19742 |
product |
77812 |
A |
5 |
|
|
| 0 |
|
|
|
|
76476 |
19744 |
product |
77828 |
A |
5 |
|
|
| 0 |
|
|
|
|
76508 |
19748 |
product |
77860 |
A |
5 |
|
|
| 0 |
|
|
|
|
76564 |
19755 |
product |
77916 |
A |
5 |
|
|
| 0 |
|
|
|
|
46665 |
13133 |
product |
48017 |
A |
6 |
|
|
| 0 |
|
|
|
|
76461 |
19742 |
product |
77813 |
A |
6 |
|
|
| 0 |
|
|
|
|
76477 |
19744 |
product |
77829 |
A |
6 |
|
|
| 0 |
|
|
|
|
76509 |
19748 |
product |
77861 |
A |
6 |
|
|
| 0 |
|
|
|
|
76565 |
19755 |
product |
77917 |
A |
6 |
|
|
| 0 |
|
|
|
|
76462 |
19742 |
product |
77814 |
A |
7 |
|
|
| 0 |
|
|
|
|
76478 |
19744 |
product |
77830 |
A |
7 |
|
|
| 0 |
|
|
|
|
76510 |
19748 |
product |
77862 |
A |
7 |
|
|
| 0 |
|
|
|
|
76566 |
19755 |
product |
77918 |
A |
7 |
|
|