Query time 0.00124
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "251.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "49.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": 49,
"rows_produced_per_join": 49,
"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 ('37553','37554','37555','37557','37558','37559','37560','37561','37562','37563','37820','37821','37822','37823','37824','37825')))",
"cost_info": {
"read_cost": "74.81",
"eval_cost": "9.80",
"prefix_cost": "84.61",
"data_read_per_join": "4K"
},
"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": 49,
"filtered": "100.00",
"cost_info": {
"read_cost": "49.00",
"eval_cost": "9.80",
"prefix_cost": "143.41",
"data_read_per_join": "37K"
},
"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": 49,
"filtered": "100.00",
"cost_info": {
"read_cost": "49.00",
"eval_cost": "9.80",
"prefix_cost": "202.21",
"data_read_per_join": "29K"
},
"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 |
51WW4g3Z__L._SL1000_.jpg |
1000 |
1000 |
N |
62114 |
37823 |
product |
64070 |
M |
0 |
|
64070 |
0 |
91v6u1bdHAL._SL1500_.jpg |
1500 |
1500 |
N |
62117 |
37821 |
product |
64073 |
M |
0 |
|
64073 |
0 |
71XqCR9kd8L._SL1500_.jpg |
643 |
1500 |
N |
62118 |
37820 |
product |
64074 |
M |
0 |
|
64074 |
0 |
17079441-s4-file-5ca6074872ad2.jpeg |
600 |
832 |
N |
62859 |
37825 |
product |
64815 |
M |
0 |
|
64815 |
0 |
s-l1600_creg-lk.jpg |
600 |
600 |
N |
62911 |
37554 |
product |
64867 |
M |
0 |
|
64867 |
0 |
N11201467A_1.jpg |
800 |
1091 |
N |
62912 |
37555 |
product |
64868 |
M |
0 |
|
64868 |
0 |
mist_web.jpg |
640 |
626 |
N |
63014 |
37822 |
product |
64970 |
M |
0 |
|
64970 |
0 |
818P1YKFWaL._SL1500_.jpg |
1500 |
1500 |
N |
63045 |
37557 |
product |
65001 |
M |
0 |
|
65001 |
0 |
e7916f783e0e3256abfb199f799f47ae001f921f_Bvlgari_001-600x600.jpg |
600 |
600 |
N |
63050 |
37560 |
product |
65006 |
M |
0 |
|
65006 |
0 |
bvlgari-omnia-coral-w-edt-65ml15ml-pouch-set.jpg |
800 |
800 |
N |
63052 |
37562 |
product |
65008 |
M |
0 |
|
65008 |
0 |
81vMg7yE-xL._SL1500_.jpg |
1500 |
1500 |
N |
63054 |
37563 |
product |
65010 |
M |
0 |
|
65010 |
0 |
84336p-d23_1.jpg |
470 |
394 |
N |
63060 |
37559 |
product |
65016 |
M |
0 |
|
65016 |
0 |
40073_001.png |
423 |
330 |
N |
63061 |
37561 |
product |
65017 |
M |
0 |
|
65017 |
0 |
2_zi7x-uw.jpg |
640 |
626 |
N |
82910 |
37553 |
product |
84853 |
M |
0 |
|
84853 |
0 |
BVLGARI-MAN-IN-BLACK-THE-REFILLABLE-TRAVEL-SPRAY-GIFT-SET-FOR-MEN.jpg |
510 |
600 |
N |
63048 |
37558 |
product |
65004 |
M |
1 |
|
65004 |
0 |
s-l640_h7o5-s8.jpg |
498 |
640 |
N |
63194 |
37824 |
product |
65150 |
M |
1 |
|
65150 |