Query time 0.00323
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2.60"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "1.00"
},
"nested_loop": [
{
"table": {
"table_name": "vendor_plans",
"access_type": "ALL",
"rows_examined_per_scan": 10,
"rows_produced_per_join": 1,
"filtered": "10.00",
"cost_info": {
"read_cost": "1.15",
"eval_cost": "0.10",
"prefix_cost": "1.25",
"data_read_per_join": "112"
},
"used_columns": [
"plan_id",
"status",
"position",
"is_default",
"price",
"periodicity",
"commission",
"fixed_commission",
"products_limit",
"revenue_limit",
"vendor_store",
"categories",
"storefronts",
"ss_prom_vendor_promotions_allowed",
"allowed_vendor_subdomain",
"ss_prom_vendor_promotions_priority",
"ga_vendors_tracking",
"allow_custom_domain",
"lowers_allowed_balance",
"grace_period_to_refill_balance",
"usergroups"
],
"attached_condition": "((`goimagine`.`vendor_plans`.`status` = 'A') and ((0 <> find_in_set(1,`goimagine`.`vendor_plans`.`storefronts`)) or (`goimagine`.`vendor_plans`.`storefronts` is null) or (`goimagine`.`vendor_plans`.`storefronts` = '')))"
}
},
{
"table": {
"table_name": "vendor_plan_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"plan_id",
"lang_code"
],
"key_length": "10",
"ref": [
"goimagine.vendor_plans.plan_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "1.60",
"data_read_per_join": "1K"
},
"used_columns": [
"plan_id",
"lang_code",
"plan",
"description",
"chargebee_plan"
]
}
}
]
}
}
}