Query time 0.00113
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "132.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "23.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 23,
"rows_produced_per_join": 23,
"filtered": "100.00",
"index_condition": "((`pankajecarter_systemfour`.`cscart_images_links`.`object_type` = 'product') and (`pankajecarter_systemfour`.`cscart_images_links`.`type` = 'M') and (`pankajecarter_systemfour`.`cscart_images_links`.`object_id` in (232,435,439,443,436,437,438,440,441,442,444,445,446,432,433,434,170,456,278,280,282,281)))",
"cost_info": {
"read_cost": "49.61",
"eval_cost": "4.60",
"prefix_cost": "54.21",
"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": [
"pankajecarter_systemfour.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.00",
"eval_cost": "4.60",
"prefix_cost": "81.81",
"data_read_per_join": "17K"
},
"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": "108",
"ref": [
"pankajecarter_systemfour.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.00",
"eval_cost": "4.60",
"prefix_cost": "109.41",
"data_read_per_join": "13K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
]
}
}
]
}
}
}
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 |
588crm_hero.jpg |
800 |
800 |
N |
610 |
170 |
product |
666 |
M |
0 |
|
666 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
789 |
232 |
product |
845 |
M |
0 |
|
845 |
| 0 |
t-6.jpg |
400 |
543 |
N |
1160 |
278 |
product |
1397 |
M |
0 |
|
1397 |
| 0 |
t-4.jpg |
2300 |
2415 |
N |
1164 |
280 |
product |
1401 |
M |
0 |
|
1401 |
| 0 |
t-2.jpg |
2300 |
2415 |
N |
1167 |
281 |
product |
1404 |
M |
0 |
|
1404 |
| 0 |
t-7.jpg |
1500 |
1500 |
N |
1168 |
282 |
product |
1405 |
M |
0 |
|
1405 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6695 |
432 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6696 |
433 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6697 |
434 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6698 |
435 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6699 |
436 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6700 |
437 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6701 |
438 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6702 |
439 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6703 |
440 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6704 |
441 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6705 |
442 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6706 |
443 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6707 |
444 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6708 |
445 |
product |
845 |
M |
0 |
|
845 |
| 0 |
url_uploaded_file_13287873494f33af96095d8.jpg |
1000 |
1000 |
N |
6709 |
446 |
product |
845 |
M |
0 |
|
845 |
| 0 |
588crm_hero.jpg |
800 |
800 |
N |
6741 |
456 |
product |
666 |
M |
0 |
|
666 |