Query time 0.00124
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "169.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "32.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": 32,
"rows_produced_per_join": 32,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'M') and (`portal`.`q_images_links`.`object_id` in ('31121','31122','31123','31124','31125','31126','31127','31128','31129','31130','31131','31132','31133','31134','31135','31136')))",
"cost_info": {
"read_cost": "54.41",
"eval_cost": "6.40",
"prefix_cost": "60.81",
"data_read_per_join": "3K"
},
"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": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "32.00",
"eval_cost": "6.40",
"prefix_cost": "99.21",
"data_read_per_join": "24K"
},
"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": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "32.00",
"eval_cost": "6.40",
"prefix_cost": "137.61",
"data_read_per_join": "19K"
},
"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 |
61DIQKUEb6L._SL1000_.jpg |
1000 |
1000 |
N |
49671 |
31136 |
product |
51632 |
M |
0 |
|
51632 |
0 |
61gM0MXvmYL._SL1000_.jpg |
1000 |
1000 |
N |
49674 |
31132 |
product |
51635 |
M |
0 |
|
51635 |
0 |
71F5OMKhrOL._SL1024_.jpg |
1024 |
1024 |
N |
49676 |
31130 |
product |
51637 |
M |
0 |
|
51637 |
0 |
61hWZANNSoL._SL1024_.jpg |
1024 |
1024 |
N |
49677 |
31129 |
product |
51638 |
M |
0 |
|
51638 |
0 |
31k5btRKIiL.jpg |
500 |
500 |
N |
49678 |
31128 |
product |
51639 |
M |
0 |
|
51639 |
0 |
51AEtB2dowL._SL1024_.jpg |
1024 |
1024 |
N |
49680 |
31127 |
product |
51641 |
M |
0 |
|
51641 |
0 |
51gR70hEceL._SL1024_.jpg |
1024 |
1024 |
N |
49682 |
31126 |
product |
51643 |
M |
0 |
|
51643 |
0 |
61hAzdkUv8L._SL1000_.jpg |
1000 |
1000 |
N |
49683 |
31125 |
product |
51644 |
M |
0 |
|
51644 |
0 |
61-Mq0N3s7L._SL1024_.jpg |
1024 |
1024 |
N |
49684 |
31124 |
product |
51645 |
M |
0 |
|
51645 |
0 |
71AGUBBytLL._SL1000_.jpg |
1000 |
1000 |
N |
49685 |
31123 |
product |
51646 |
M |
0 |
|
51646 |
0 |
61s44zkODiL._SL1000_.jpg |
1000 |
1000 |
N |
49686 |
31122 |
product |
51647 |
M |
0 |
|
51647 |
0 |
51IrSK07gqL._SX385_.jpg |
385 |
385 |
N |
49687 |
31121 |
product |
51648 |
M |
0 |
|
51648 |
0 |
41xYgSXpU7L._AC_UL436_.jpg |
436 |
213 |
N |
49742 |
31133 |
product |
51703 |
M |
0 |
|
51703 |
0 |
61zjbvfAUdL._AC_UL436_.jpg |
436 |
436 |
N |
49743 |
31131 |
product |
51704 |
M |
0 |
|
51704 |
0 |
61QSdsURaCL._AC_UL436_.jpg |
436 |
436 |
N |
49744 |
31134 |
product |
51705 |
M |
0 |
|
51705 |
0 |
61c-Aa3LaUL._AC_UL436_.jpg |
436 |
372 |
N |
49745 |
31135 |
product |
51706 |
M |
0 |
|
51706 |