Query time 0.00099
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "100.20"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "24.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": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'M') and (`cscart_db`.`cscart_images_links`.`object_id` in (37995,37998,38253,38685,64568,64572,65373,67029,67040,67317,67586,67667,67701,68434,68506,68607,68787,68792,69072,69088,69518,69834,69931,70093)))",
"cost_info": {
"read_cost": "34.17",
"eval_cost": "2.40",
"prefix_cost": "36.57",
"data_read_per_join": "2K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "18.49",
"eval_cost": "2.40",
"prefix_cost": "57.46",
"data_read_per_join": "18K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.34",
"eval_cost": "2.40",
"prefix_cost": "76.20",
"data_read_per_join": "14K"
},
"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 |
|
|
|
|
166701 |
37995 |
product |
168050 |
M |
0 |
|
|
| 0 |
|
|
|
|
166812 |
37998 |
product |
168161 |
M |
0 |
|
|
| 0 |
|
|
|
|
167870 |
38253 |
product |
169219 |
M |
0 |
|
|
| 0 |
|
|
|
|
169434 |
38685 |
product |
170783 |
M |
0 |
|
|
| 0 |
|
|
|
|
172874 |
64568 |
product |
174220 |
M |
0 |
|
|
| 0 |
|
|
|
|
172902 |
64572 |
product |
174248 |
M |
0 |
|
|
| 0 |
|
|
|
|
177215 |
65373 |
product |
178561 |
M |
0 |
|
|
| 0 |
|
|
|
|
186030 |
67029 |
product |
187376 |
M |
0 |
|
|
| 0 |
|
|
|
|
186101 |
67040 |
product |
187447 |
M |
0 |
|
|
| 0 |
|
|
|
|
189558 |
67667 |
product |
190896 |
M |
0 |
|
|
| 0 |
|
|
|
|
190627 |
67701 |
product |
191965 |
M |
0 |
|
|
| 0 |
|
|
|
|
190980 |
67317 |
product |
192318 |
M |
0 |
|
|
| 0 |
|
|
|
|
197117 |
68434 |
product |
198455 |
M |
0 |
|
|
| 0 |
|
|
|
|
197312 |
67586 |
product |
198650 |
M |
0 |
|
|
| 0 |
|
|
|
|
197821 |
68506 |
product |
199159 |
M |
0 |
|
|
| 0 |
|
|
|
|
198576 |
68607 |
product |
199860 |
M |
0 |
|
|
| 0 |
|
|
|
|
200056 |
68787 |
product |
201340 |
M |
0 |
|
|
| 0 |
|
|
|
|
200101 |
68792 |
product |
201385 |
M |
0 |
|
|
| 0 |
|
|
|
|
203008 |
69072 |
product |
204292 |
M |
0 |
|
|
| 0 |
|
|
|
|
203141 |
69088 |
product |
204425 |
M |
0 |
|
|
| 0 |
|
|
|
|
207652 |
69518 |
product |
208927 |
M |
0 |
|
|
| 0 |
|
|
|
|
209780 |
69834 |
product |
211055 |
M |
0 |
|
|
| 0 |
|
|
|
|
210696 |
69931 |
product |
211971 |
M |
0 |
|
|
| 0 |
|
|
|
|
213085 |
70093 |
product |
214360 |
M |
0 |
|
|