Query time 0.00013
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.15"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "2.00"
},
"nested_loop": [
{
"table": {
"table_name": "g",
"access_type": "ALL",
"rows_examined_per_scan": 2,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.20",
"prefix_cost": "0.45",
"data_read_per_join": "1K"
},
"used_columns": [
"group_id",
"position",
"name",
"timestamp",
"status",
"for_admins",
"for_vendors",
"for_customers"
]
}
},
{
"table": {
"table_name": "gd",
"access_type": "eq_ref",
"possible_keys": [
"lang_code",
"group_id"
],
"key": "lang_code",
"used_key_parts": [
"lang_code",
"group_id"
],
"key_length": "11",
"ref": [
"const",
"CS_Cart_Dev.g.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.50",
"eval_cost": "0.20",
"prefix_cost": "1.15",
"data_read_per_join": "48"
},
"used_columns": [
"group_id",
"group",
"lang_code"
],
"attached_condition": "<if>(is_not_null_compl(gd), (`CS_Cart_Dev`.`gd`.`lang_code` = 'en'), true)"
}
}
]
}
}
}
Result
group_id |
position |
name |
timestamp |
status |
for_admins |
for_vendors |
for_customers |
group |
1 |
10 |
General Questions |
1749171948 |
A |
N |
N |
Y |
General Questions |
2 |
20 |
Oklahoma |
1749172055 |
A |
N |
N |
Y |
Oklahoma |