Query time 0.00198
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "68.26"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"rows_examined_per_scan": 65,
"rows_produced_per_join": 65,
"filtered": "100.00",
"index_condition": "(`dev_yourmart_co_bw`.`pfv`.`variant_id` in (1502,1503,1504,1505,1499,1506,1507,1508,1509,1510,1511,1512,1513,1515,1516,1206,1498,1524,1218,1525,1526,1238,1527,1528,1529,1531,1532,1533,1205,1534,1535,1214,1536,1537,1207,1539,1542,1543,1544,1545,1546,1547,1548,1549,1550,1239,1551,1556,1557,1562,1563,1208,1568,1569,1570,1571,1572,1573,1574,1575,1576,1213,1215,1604,1605))",
"cost_info": {
"read_cost": "39.01",
"eval_cost": "6.50",
"prefix_cost": "45.51",
"data_read_per_join": "74K"
},
"used_columns": [
"variant_id",
"position"
]
}
},
{
"table": {
"table_name": "pfvd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"dev_yourmart_co_bw.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 65,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.25",
"eval_cost": "6.50",
"prefix_cost": "68.26",
"data_read_per_join": "196K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
variant_id |
position |
variant |
1205 |
3 |
Brown |
1206 |
2 |
Black |
1207 |
1 |
White |
1208 |
4 |
Green |
1213 |
0 |
Gold |
1214 |
0 |
PINK |
1215 |
0 |
Silver |
1218 |
0 |
Orange |
1238 |
0 |
Red |
1239 |
0 |
Purple |
1498 |
0 |
Stripe |
1499 |
0 |
Chevron |
1502 |
0 |
Leaf stripe |
1503 |
0 |
Narrow stripe |
1504 |
0 |
Star |
1505 |
0 |
Stripes |
1506 |
0 |
Striped |
1507 |
0 |
Narrow stripes |
1508 |
0 |
Light triangles |
1509 |
0 |
Dark triangles |
1510 |
0 |
Hole light |
1511 |
0 |
Stripe dark |
1512 |
0 |
Dark |
1513 |
0 |
Light |
1515 |
0 |
Natural |
1516 |
0 |
Leopard spots |
1524 |
0 |
3 circle |
1525 |
0 |
Red giraffe |
1526 |
0 |
Red zebra |
1527 |
0 |
Diagonal stripe |
1528 |
0 |
Circle |
1529 |
0 |
Leaf |
1531 |
0 |
White weave |
1532 |
0 |
Diagonal dots |
1533 |
0 |
Horizontal dots |
1534 |
0 |
Kenti yellow |
1535 |
0 |
Kenti multi-colour |
1536 |
0 |
More orange |
1537 |
0 |
More yellow |
1539 |
0 |
Large |
1542 |
0 |
58cm x 27cm x 12cm |
1543 |
0 |
67cm x 32cm x 12cm |
1544 |
0 |
Large bead |
1545 |
0 |
Medium bead |
1546 |
0 |
Blue/White |
1547 |
0 |
Yellow/Orange |
1548 |
0 |
Green/Blue |
1549 |
0 |
Green/Blue/Orange |
1550 |
0 |
Multi colour |
1551 |
0 |
Red/Black |
1556 |
0 |
Batik |
1557 |
0 |
Batik spots |
1562 |
0 |
Blue |
1563 |
0 |
Aqua |
1568 |
0 |
Red chevron |
1569 |
0 |
Black chevron on cream |
1570 |
0 |
Blue chevron on cream |
1571 |
0 |
Black triangles |
1572 |
0 |
elephant |
1573 |
0 |
Giraffe on black |
1574 |
0 |
Rhino |
1575 |
0 |
Blue fish |
1576 |
0 |
Blue crocodile |
1604 |
0 |
Male |
1605 |
0 |
Female |