Query time 0.00129
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "140.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "26.00"
},
"nested_loop": [
{
"table": {
"table_name": "q_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": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') and (`portal`.`q_images_links`.`object_id` in ('9501','9502','9503','9504','9505','9506','9507','9508','9509','9510','9511','9512','9513','9514','9515','9516')))",
"cost_info": {
"read_cost": "47.21",
"eval_cost": "5.20",
"prefix_cost": "52.41",
"data_read_per_join": "2K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "q_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"portal.q_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "83.61",
"data_read_per_join": "19K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "q_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"portal.q_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "114.81",
"data_read_per_join": "15K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_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 |
HX-PEM04-EU_LS1.jpg |
1500 |
1500 |
N |
20325 |
9501 |
product |
22287 |
A |
1 |
|
22287 |
0 |
1wq_large.jpeg |
480 |
480 |
N |
25594 |
9508 |
product |
27556 |
A |
1 |
|
27556 |
0 |
41WdP_HUHKL.jpg |
500 |
500 |
N |
25595 |
9507 |
product |
27557 |
A |
1 |
|
27557 |
0 |
71RxaKnMfgL._SL1000_.jpg |
975 |
1000 |
N |
25603 |
9502 |
product |
27565 |
A |
1 |
|
27565 |
0 |
ICP-IM296-RBY.jpg |
1200 |
1200 |
N |
25611 |
9510 |
product |
27573 |
A |
1 |
|
27573 |
0 |
incipio-tek-nical-advanced-ipad-pro-10-5-2017-case-black-ab-v2.jpg |
88 |
110 |
N |
25833 |
9516 |
product |
27795 |
A |
1 |
|
27795 |
0 |
819Q1cfS9qL._SL1500_.jpg |
1500 |
1500 |
N |
25836 |
9515 |
product |
27798 |
A |
1 |
|
27798 |
0 |
710jwaR2yHL._SL1500_.jpg |
1500 |
1500 |
N |
25839 |
9514 |
product |
27801 |
A |
1 |
|
27801 |
0 |
71A5IQaCaUL._SL1500_.jpg |
1500 |
1500 |
N |
25841 |
9513 |
product |
27803 |
A |
1 |
|
27803 |
0 |
ICP-IM296-SMK_2_1024x.jpg |
1024 |
1024 |
N |
25849 |
9511 |
product |
27811 |
A |
1 |
|
27811 |
0 |
31rfKvCqPtL.jpg |
500 |
500 |
N |
25596 |
9507 |
product |
27558 |
A |
2 |
|
27558 |
0 |
61zRXvOjYSL._SL1500_.jpg |
1500 |
680 |
N |
25598 |
9506 |
product |
27560 |
A |
2 |
|
27560 |
0 |
61nTk15Cf2L._SL1000_.jpg |
630 |
1000 |
N |
25602 |
9503 |
product |
27564 |
A |
2 |
|
27564 |
0 |
61_PS-DZgRL._SL1000_.jpg |
630 |
1000 |
N |
25604 |
9502 |
product |
27566 |
A |
2 |
|
27566 |
0 |
71w0U5-yCWL._SL1000_.jpg |
1000 |
952 |
N |
25605 |
9501 |
product |
27567 |
A |
2 |
|
27567 |
0 |
ICP-IM296-RBY-2.jpg |
1200 |
1200 |
N |
25612 |
9510 |
product |
27574 |
A |
2 |
|
27574 |
0 |
incipio-tek-nical-advanced-ipad-pro-10-5-2017-case-black-f-v2.jpg |
560 |
560 |
N |
25834 |
9516 |
product |
27796 |
A |
2 |
|
27796 |
0 |
81cld08JFtL._SL1500_.jpg |
1500 |
1500 |
N |
25837 |
9515 |
product |
27799 |
A |
2 |
|
27799 |
0 |
81hlAmaz6AL._SL1500_.jpg |
1500 |
1500 |
N |
25840 |
9514 |
product |
27802 |
A |
2 |
|
27802 |
0 |
81n9rI7qTIL._SL1500_.jpg |
1500 |
1500 |
N |
25842 |
9513 |
product |
27804 |
A |
2 |
|
27804 |
0 |
518FApp5QUL._SL1500_.jpg |
1500 |
196 |
N |
25844 |
9512 |
product |
27806 |
A |
2 |
|
27806 |
0 |
719gELi6opL._SL1500_.jpg |
1500 |
1500 |
N |
25850 |
9511 |
product |
27812 |
A |
2 |
|
27812 |
0 |
61fk8_54WaL._SL1000_.jpg |
922 |
1000 |
N |
25606 |
9501 |
product |
27568 |
A |
3 |
|
27568 |
0 |
incipio-tek-nical-advanced-ipad-pro-10-5-2017-case-black-g-v2.jpg |
560 |
560 |
N |
25835 |
9516 |
product |
27797 |
A |
3 |
|
27797 |
0 |
71ttZbh_JQL._SL1500_.jpg |
1500 |
1500 |
N |
25838 |
9515 |
product |
27800 |
A |
3 |
|
27800 |
0 |
51MfDt3etEL._SL1500_.jpg |
1500 |
1041 |
N |
25843 |
9512 |
product |
27805 |
A |
3 |
|
27805 |
0 |
7136N1ObpbL._SL1500_.jpg |
1500 |
1500 |
N |
25851 |
9511 |
product |
27813 |
A |
3 |
|
27813 |
0 |
71eCVFiAx1L._SL1500_.jpg |
1500 |
902 |
N |
25845 |
9512 |
product |
27807 |
A |
5 |
|
27807 |