Query time 0.00126
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "49.91"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "21.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": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"index_condition": "((`test2_gaseus`.`cscart_images_links`.`object_type` = 'product') and (`test2_gaseus`.`cscart_images_links`.`type` = 'M') and (`test2_gaseus`.`cscart_images_links`.`object_id` in (12532,12524,12533,12534,12535,12555,12570,12585,12560,12565,12556,12557,12558,12554,12550,12546,12552,12551,12553)))",
"cost_info": {
"read_cost": "12.11",
"eval_cost": "2.10",
"prefix_cost": "14.21",
"data_read_per_join": "1K"
},
"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": [
"test2_gaseus.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.25",
"eval_cost": "2.10",
"prefix_cost": "21.56",
"data_read_per_join": "16K"
},
"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": [
"test2_gaseus.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.25",
"eval_cost": "2.10",
"prefix_cost": "28.91",
"data_read_per_join": "12K"
},
"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 |
Thanos_L2_600x600.jpg |
564 |
600 |
N |
11996 |
12524 |
product |
15479 |
M |
0 |
|
15479 |
| 0 |
Thanos_L2_600x600_3k93-ng.jpg |
564 |
600 |
N |
12004 |
12532 |
product |
15487 |
M |
0 |
|
15487 |
| 0 |
Thanos_L2_600x600_1s6g-ub.jpg |
564 |
600 |
N |
12005 |
12533 |
product |
15488 |
M |
0 |
|
15488 |
| 0 |
Thanos_L2_600x600_agei-wd.jpg |
564 |
600 |
N |
12006 |
12534 |
product |
15489 |
M |
0 |
|
15489 |
| 0 |
Thanos_L2_600x600_30vw-nf.jpg |
564 |
600 |
N |
12007 |
12535 |
product |
15490 |
M |
0 |
|
15490 |
| 0 |
Thanos_L2_600x600_2x_tp50-va.jpg |
1128 |
1200 |
N |
12018 |
12546 |
product |
15501 |
M |
0 |
|
15501 |
| 0 |
Thanos_L2_600x600_2x_te60-9y.jpg |
1128 |
1200 |
N |
12022 |
12550 |
product |
15505 |
M |
0 |
|
15505 |
| 0 |
Thanos_L2_600x600_2x_aldv-5c.jpg |
1128 |
1200 |
N |
12023 |
12551 |
product |
15506 |
M |
0 |
|
15506 |
| 0 |
Thanos_L2_600x600_2x_9mr2-n1.jpg |
1128 |
1200 |
N |
12024 |
12552 |
product |
15507 |
M |
0 |
|
15507 |
| 0 |
Thanos_L2_600x600_2x_cjej-5d.jpg |
1128 |
1200 |
N |
12025 |
12553 |
product |
15508 |
M |
0 |
|
15508 |
| 0 |
1380701864-32684-1-2_600x600.jpg |
500 |
451 |
N |
12026 |
12554 |
product |
15509 |
M |
0 |
|
15509 |
| 0 |
1380701864-32684-1-2_600x600_ndzm-1h.jpg |
500 |
451 |
N |
12027 |
12555 |
product |
15510 |
M |
0 |
|
15510 |
| 0 |
1380701864-32684-1-2_600x600_9trw-iz.jpg |
500 |
451 |
N |
12028 |
12556 |
product |
15511 |
M |
0 |
|
15511 |
| 0 |
1380701864-32684-1-2_600x600_pfxs-py.jpg |
500 |
451 |
N |
12029 |
12557 |
product |
15512 |
M |
0 |
|
15512 |
| 0 |
1380701864-32684-1-2_600x600_wsda-2x.jpg |
500 |
451 |
N |
12030 |
12558 |
product |
15513 |
M |
0 |
|
15513 |
| 0 |
1380701864-32684-1-2_600x600_0cs4-u0.jpg |
500 |
451 |
N |
12032 |
12560 |
product |
15515 |
M |
0 |
|
15515 |
| 0 |
1380701864-32684-1-2_600x600_bsuw-hx.jpg |
500 |
451 |
N |
12037 |
12565 |
product |
15520 |
M |
0 |
|
15520 |
| 0 |
1380701864-32684-1-2_600x600_vxh4-f4.jpg |
500 |
451 |
N |
12042 |
12570 |
product |
15525 |
M |
0 |
|
15525 |
| 0 |
1380701864-32684-1-2_600x600_uhl6-6t.jpg |
500 |
451 |
N |
12057 |
12585 |
product |
15540 |
M |
0 |
|
15540 |