Query time 0.00111
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "248.67"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "59.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": 59,
"rows_produced_per_join": 59,
"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 (68137,32163,37523,69955,29769,65495,67326,69353,18019,67537,70070,67922,70113,65027,67919,70199,68395,70072,70237,67917,70236,70112,70238,27080)))",
"cost_info": {
"read_cost": "74.53",
"eval_cost": "5.90",
"prefix_cost": "80.43",
"data_read_per_join": "5K"
},
"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": 59,
"filtered": "100.00",
"cost_info": {
"read_cost": "50.82",
"eval_cost": "5.90",
"prefix_cost": "137.14",
"data_read_per_join": "45K"
},
"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": 59,
"filtered": "100.00",
"cost_info": {
"read_cost": "46.63",
"eval_cost": "5.90",
"prefix_cost": "189.68",
"data_read_per_join": "35K"
},
"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 |
|
|
|
|
99890 |
27080 |
product |
101242 |
A |
1 |
|
|
| 0 |
|
|
|
|
112929 |
29769 |
product |
114281 |
A |
1 |
|
|
| 0 |
|
|
|
|
125814 |
32163 |
product |
127166 |
A |
1 |
|
|
| 0 |
|
|
|
|
177275 |
65495 |
product |
178621 |
A |
1 |
|
|
| 0 |
|
|
|
|
189086 |
67537 |
product |
190424 |
A |
1 |
|
|
| 0 |
|
|
|
|
192364 |
67919 |
product |
193702 |
A |
1 |
|
|
| 0 |
|
|
|
|
193893 |
68137 |
product |
195231 |
A |
1 |
|
|
| 0 |
|
|
|
|
196885 |
68395 |
product |
198223 |
A |
1 |
|
|
| 0 |
|
|
|
|
208536 |
69353 |
product |
209811 |
A |
1 |
|
|
| 0 |
|
|
|
|
214650 |
70199 |
product |
215925 |
A |
1 |
|
|
| 0 |
|
|
|
|
99891 |
27080 |
product |
101243 |
A |
2 |
|
|
| 0 |
|
|
|
|
112930 |
29769 |
product |
114282 |
A |
2 |
|
|
| 0 |
|
|
|
|
177276 |
65495 |
product |
178622 |
A |
2 |
|
|
| 0 |
|
|
|
|
189087 |
67537 |
product |
190425 |
A |
2 |
|
|
| 0 |
|
|
|
|
192367 |
67919 |
product |
193705 |
A |
2 |
|
|
| 0 |
|
|
|
|
192381 |
67922 |
product |
193719 |
A |
2 |
|
|
| 0 |
|
|
|
|
193892 |
68137 |
product |
195230 |
A |
2 |
|
|
| 0 |
|
|
|
|
196886 |
68395 |
product |
198224 |
A |
2 |
|
|
| 0 |
|
|
|
|
208537 |
69353 |
product |
209812 |
A |
2 |
|
|
| 0 |
|
|
|
|
214375 |
32163 |
product |
215650 |
A |
2 |
|
|
| 0 |
|
|
|
|
214651 |
70199 |
product |
215926 |
A |
2 |
|
|
| 0 |
|
|
|
|
99892 |
27080 |
product |
101244 |
A |
3 |
|
|
| 0 |
|
|
|
|
112931 |
29769 |
product |
114283 |
A |
3 |
|
|
| 0 |
|
|
|
|
177277 |
65495 |
product |
178623 |
A |
3 |
|
|
| 0 |
|
|
|
|
192378 |
67922 |
product |
193716 |
A |
3 |
|
|
| 0 |
|
|
|
|
208538 |
69353 |
product |
209813 |
A |
3 |
|
|
| 0 |
|
|
|
|
214387 |
67537 |
product |
215662 |
A |
3 |
|
|
| 0 |
|
|
|
|
214652 |
70199 |
product |
215927 |
A |
3 |
|
|
| 0 |
|
|
|
|
99893 |
27080 |
product |
101245 |
A |
4 |
|
|
| 0 |
|
|
|
|
112932 |
29769 |
product |
114284 |
A |
4 |
|
|
| 0 |
|
|
|
|
177278 |
65495 |
product |
178624 |
A |
4 |
|
|
| 0 |
|
|
|
|
192377 |
67922 |
product |
193715 |
A |
4 |
|
|
| 0 |
|
|
|
|
177279 |
65495 |
product |
178625 |
A |
5 |
|
|
| 0 |
|
|
|
|
192376 |
67922 |
product |
193714 |
A |
5 |
|
|
| 0 |
|
|
|
|
177280 |
65495 |
product |
178626 |
A |
6 |
|
|
| 0 |
|
|
|
|
192375 |
67922 |
product |
193713 |
A |
6 |
|
|
| 0 |
|
|
|
|
177281 |
65495 |
product |
178627 |
A |
7 |
|
|
| 0 |
|
|
|
|
192380 |
67922 |
product |
193718 |
A |
7 |
|
|
| 0 |
|
|
|
|
177282 |
65495 |
product |
178628 |
A |
8 |
|
|
| 0 |
|
|
|
|
192373 |
67922 |
product |
193711 |
A |
8 |
|
|
| 0 |
|
|
|
|
177283 |
65495 |
product |
178629 |
A |
9 |
|
|
| 0 |
|
|
|
|
192372 |
67922 |
product |
193710 |
A |
9 |
|
|
| 0 |
|
|
|
|
177284 |
65495 |
product |
178630 |
A |
10 |
|
|
| 0 |
|
|
|
|
192379 |
67922 |
product |
193717 |
A |
10 |
|
|
| 0 |
|
|
|
|
177285 |
65495 |
product |
178631 |
A |
11 |
|
|
| 0 |
|
|
|
|
192374 |
67922 |
product |
193712 |
A |
11 |
|
|