Query time 0.00077
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "163.00"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "45.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": 45,
"rows_produced_per_join": 45,
"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 (67477,67470,67471,67488,67478,67469,67472,67475)))",
"cost_info": {
"read_cost": "38.55",
"eval_cost": "4.50",
"prefix_cost": "43.05",
"data_read_per_join": "4K"
},
"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": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "33.84",
"eval_cost": "4.50",
"prefix_cost": "81.40",
"data_read_per_join": "34K"
},
"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": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "32.11",
"eval_cost": "4.50",
"prefix_cost": "118.00",
"data_read_per_join": "26K"
},
"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 |
|
|
|
|
188536 |
67469 |
product |
189874 |
A |
1 |
|
|
| 0 |
|
|
|
|
188543 |
67470 |
product |
189881 |
A |
1 |
|
|
| 0 |
|
|
|
|
188552 |
67471 |
product |
189890 |
A |
1 |
|
|
| 0 |
|
|
|
|
188559 |
67472 |
product |
189897 |
A |
1 |
|
|
| 0 |
|
|
|
|
188579 |
67475 |
product |
189917 |
A |
1 |
|
|
| 0 |
|
|
|
|
188604 |
67477 |
product |
189942 |
A |
1 |
|
|
| 0 |
|
|
|
|
188608 |
67478 |
product |
189946 |
A |
1 |
|
|
| 0 |
|
|
|
|
188670 |
67488 |
product |
190008 |
A |
1 |
|
|
| 0 |
|
|
|
|
188537 |
67469 |
product |
189875 |
A |
2 |
|
|
| 0 |
|
|
|
|
188544 |
67470 |
product |
189882 |
A |
2 |
|
|
| 0 |
|
|
|
|
188553 |
67471 |
product |
189891 |
A |
2 |
|
|
| 0 |
|
|
|
|
188560 |
67472 |
product |
189898 |
A |
2 |
|
|
| 0 |
|
|
|
|
188580 |
67475 |
product |
189918 |
A |
2 |
|
|
| 0 |
|
|
|
|
188605 |
67477 |
product |
189943 |
A |
2 |
|
|
| 0 |
|
|
|
|
188609 |
67478 |
product |
189947 |
A |
2 |
|
|
| 0 |
|
|
|
|
188671 |
67488 |
product |
190009 |
A |
2 |
|
|
| 0 |
|
|
|
|
188538 |
67469 |
product |
189876 |
A |
3 |
|
|
| 0 |
|
|
|
|
188545 |
67470 |
product |
189883 |
A |
3 |
|
|
| 0 |
|
|
|
|
188554 |
67471 |
product |
189892 |
A |
3 |
|
|
| 0 |
|
|
|
|
188561 |
67472 |
product |
189899 |
A |
3 |
|
|
| 0 |
|
|
|
|
188581 |
67475 |
product |
189919 |
A |
3 |
|
|
| 0 |
|
|
|
|
188606 |
67477 |
product |
189944 |
A |
3 |
|
|
| 0 |
|
|
|
|
188610 |
67478 |
product |
189948 |
A |
3 |
|
|
| 0 |
|
|
|
|
188672 |
67488 |
product |
190010 |
A |
3 |
|
|
| 0 |
|
|
|
|
188539 |
67469 |
product |
189877 |
A |
4 |
|
|
| 0 |
|
|
|
|
188546 |
67470 |
product |
189884 |
A |
4 |
|
|
| 0 |
|
|
|
|
188555 |
67471 |
product |
189893 |
A |
4 |
|
|
| 0 |
|
|
|
|
188562 |
67472 |
product |
189900 |
A |
4 |
|
|
| 0 |
|
|
|
|
188582 |
67475 |
product |
189920 |
A |
4 |
|
|
| 0 |
|
|
|
|
188611 |
67478 |
product |
189949 |
A |
4 |
|
|
| 0 |
|
|
|
|
188673 |
67488 |
product |
190011 |
A |
4 |
|
|
| 0 |
|
|
|
|
188540 |
67469 |
product |
189878 |
A |
5 |
|
|
| 0 |
|
|
|
|
188547 |
67470 |
product |
189885 |
A |
5 |
|
|
| 0 |
|
|
|
|
188556 |
67471 |
product |
189894 |
A |
5 |
|
|
| 0 |
|
|
|
|
188563 |
67472 |
product |
189901 |
A |
5 |
|
|
| 0 |
|
|
|
|
188583 |
67475 |
product |
189921 |
A |
5 |
|
|
| 0 |
|
|
|
|
188674 |
67488 |
product |
190012 |
A |
5 |
|
|
| 0 |
|
|
|
|
188541 |
67469 |
product |
189879 |
A |
6 |
|
|
| 0 |
|
|
|
|
188548 |
67470 |
product |
189886 |
A |
6 |
|
|
| 0 |
|
|
|
|
188557 |
67471 |
product |
189895 |
A |
6 |
|
|
| 0 |
|
|
|
|
188584 |
67475 |
product |
189922 |
A |
6 |
|
|
| 0 |
|
|
|
|
188675 |
67488 |
product |
190013 |
A |
6 |
|
|
| 0 |
|
|
|
|
188549 |
67470 |
product |
189887 |
A |
7 |
|
|
| 0 |
|
|
|
|
188585 |
67475 |
product |
189923 |
A |
7 |
|
|
| 0 |
|
|
|
|
188676 |
67488 |
product |
190014 |
A |
7 |
|
|