Query time 0.00124
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "83.45"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "26.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": 26,
"rows_produced_per_join": 26,
"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 (66183,64396,65422,65423,65426,65427,65428,65429,65430,65431,65432,65434,65435,65436,65438,65439,65440,65441,65442,65443,65444,65445,65446,65447)))",
"cost_info": {
"read_cost": "25.85",
"eval_cost": "2.60",
"prefix_cost": "28.45",
"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": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "13.04",
"eval_cost": "2.60",
"prefix_cost": "44.10",
"data_read_per_join": "19K"
},
"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": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.75",
"eval_cost": "2.60",
"prefix_cost": "57.45",
"data_read_per_join": "15K"
},
"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 |
|
|
|
|
177739 |
65432 |
product |
179085 |
A |
1 |
|
|
| 0 |
|
|
|
|
177890 |
64396 |
product |
179236 |
A |
1 |
|
|
| 0 |
|
|
|
|
177938 |
65422 |
product |
179284 |
A |
1 |
|
|
| 0 |
|
|
|
|
177939 |
65423 |
product |
179285 |
A |
1 |
|
|
| 0 |
|
|
|
|
177942 |
65426 |
product |
179288 |
A |
1 |
|
|
| 0 |
|
|
|
|
177943 |
65427 |
product |
179289 |
A |
1 |
|
|
| 0 |
|
|
|
|
177944 |
65428 |
product |
179290 |
A |
1 |
|
|
| 0 |
|
|
|
|
177945 |
65429 |
product |
179291 |
A |
1 |
|
|
| 0 |
|
|
|
|
177946 |
65430 |
product |
179292 |
A |
1 |
|
|
| 0 |
|
|
|
|
177947 |
65431 |
product |
179293 |
A |
1 |
|
|
| 0 |
|
|
|
|
177950 |
65434 |
product |
179296 |
A |
1 |
|
|
| 0 |
|
|
|
|
177951 |
65435 |
product |
179297 |
A |
1 |
|
|
| 0 |
|
|
|
|
177952 |
65436 |
product |
179298 |
A |
1 |
|
|
| 0 |
|
|
|
|
177954 |
65438 |
product |
179300 |
A |
1 |
|
|
| 0 |
|
|
|
|
177955 |
65439 |
product |
179301 |
A |
1 |
|
|
| 0 |
|
|
|
|
177956 |
65440 |
product |
179302 |
A |
1 |
|
|
| 0 |
|
|
|
|
177957 |
65441 |
product |
179303 |
A |
1 |
|
|
| 0 |
|
|
|
|
177958 |
65442 |
product |
179304 |
A |
1 |
|
|
| 0 |
|
|
|
|
177959 |
65443 |
product |
179305 |
A |
1 |
|
|
| 0 |
|
|
|
|
177960 |
65444 |
product |
179306 |
A |
1 |
|
|
| 0 |
|
|
|
|
177961 |
65445 |
product |
179307 |
A |
1 |
|
|
| 0 |
|
|
|
|
177962 |
65446 |
product |
179308 |
A |
1 |
|
|
| 0 |
|
|
|
|
177963 |
65447 |
product |
179309 |
A |
1 |
|
|
| 0 |
|
|
|
|
177740 |
65432 |
product |
179086 |
A |
2 |
|
|
| 0 |
|
|
|
|
177948 |
65432 |
product |
179294 |
A |
3 |
|
|