Query time 0.00107
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "148.32"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "37.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": 37,
"rows_produced_per_join": 37,
"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 (66758,66753,69287,69288,69267,69292,69291,69300)))",
"cost_info": {
"read_cost": "40.91",
"eval_cost": "3.70",
"prefix_cost": "44.61",
"data_read_per_join": "3K"
},
"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": 37,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.78",
"eval_cost": "3.70",
"prefix_cost": "79.09",
"data_read_per_join": "28K"
},
"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": 37,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.53",
"eval_cost": "3.70",
"prefix_cost": "111.32",
"data_read_per_join": "21K"
},
"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 |
|
|
|
|
184137 |
66753 |
product |
185483 |
A |
1 |
|
|
| 0 |
|
|
|
|
184168 |
66758 |
product |
185514 |
A |
1 |
|
|
| 0 |
|
|
|
|
184139 |
66753 |
product |
185485 |
A |
2 |
|
|
| 0 |
|
|
|
|
184170 |
66758 |
product |
185516 |
A |
2 |
|
|
| 0 |
|
|
|
|
184140 |
66753 |
product |
185486 |
A |
3 |
|
|
| 0 |
|
|
|
|
184171 |
66758 |
product |
185517 |
A |
3 |
|
|
| 0 |
|
|
|
|
184141 |
66753 |
product |
185487 |
A |
4 |
|
|
| 0 |
|
|
|
|
184172 |
66758 |
product |
185518 |
A |
4 |
|
|
| 0 |
|
|
|
|
184142 |
66753 |
product |
185488 |
A |
5 |
|
|
| 0 |
|
|
|
|
184173 |
66758 |
product |
185519 |
A |
5 |
|
|
| 0 |
|
|
|
|
184143 |
66753 |
product |
185489 |
A |
6 |
|
|
| 0 |
|
|
|
|
205146 |
69267 |
product |
206430 |
A |
10 |
|
|
| 0 |
|
|
|
|
205283 |
69287 |
product |
206567 |
A |
10 |
|
|
| 0 |
|
|
|
|
205289 |
69288 |
product |
206573 |
A |
10 |
|
|
| 0 |
|
|
|
|
205307 |
69291 |
product |
206591 |
A |
10 |
|
|
| 0 |
|
|
|
|
205313 |
69292 |
product |
206597 |
A |
10 |
|
|
| 0 |
|
|
|
|
205361 |
69300 |
product |
206645 |
A |
10 |
|
|
| 0 |
|
|
|
|
205284 |
69287 |
product |
206568 |
A |
20 |
|
|
| 0 |
|
|
|
|
205290 |
69288 |
product |
206574 |
A |
20 |
|
|
| 0 |
|
|
|
|
205308 |
69291 |
product |
206592 |
A |
20 |
|
|
| 0 |
|
|
|
|
205314 |
69292 |
product |
206598 |
A |
20 |
|
|
| 0 |
|
|
|
|
205362 |
69300 |
product |
206646 |
A |
20 |
|
|
| 0 |
|
|
|
|
205285 |
69287 |
product |
206569 |
A |
30 |
|
|
| 0 |
|
|
|
|
205291 |
69288 |
product |
206575 |
A |
30 |
|
|
| 0 |
|
|
|
|
205309 |
69291 |
product |
206593 |
A |
30 |
|
|
| 0 |
|
|
|
|
205315 |
69292 |
product |
206599 |
A |
30 |
|
|
| 0 |
|
|
|
|
205363 |
69300 |
product |
206647 |
A |
30 |
|
|
| 0 |
|
|
|
|
205286 |
69287 |
product |
206570 |
A |
40 |
|
|
| 0 |
|
|
|
|
205292 |
69288 |
product |
206576 |
A |
40 |
|
|
| 0 |
|
|
|
|
205310 |
69291 |
product |
206594 |
A |
40 |
|
|
| 0 |
|
|
|
|
205316 |
69292 |
product |
206600 |
A |
40 |
|
|
| 0 |
|
|
|
|
205364 |
69300 |
product |
206648 |
A |
40 |
|
|
| 0 |
|
|
|
|
205287 |
69287 |
product |
206571 |
A |
50 |
|
|
| 0 |
|
|
|
|
205293 |
69288 |
product |
206577 |
A |
50 |
|
|
| 0 |
|
|
|
|
205311 |
69291 |
product |
206595 |
A |
50 |
|
|
| 0 |
|
|
|
|
205317 |
69292 |
product |
206601 |
A |
50 |
|
|
| 0 |
|
|
|
|
205365 |
69300 |
product |
206649 |
A |
50 |
|
|