Query time 0.00055
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2.12"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "1.00"
},
"nested_loop": [
{
"table": {
"table_name": "manual_rating",
"access_type": "system",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 0,
"rows_produced_per_join": 1,
"filtered": "0.00",
"const_row_not_found": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "112"
},
"used_columns": [
"object_id",
"object_type",
"rating"
]
}
},
{
"table": {
"table_name": "cscart_vendor_plans",
"access_type": "ALL",
"rows_examined_per_scan": 5,
"rows_produced_per_join": 1,
"filtered": "20.00",
"cost_info": {
"read_cost": "0.92",
"eval_cost": "0.10",
"prefix_cost": "1.02",
"data_read_per_join": "104"
},
"used_columns": [
"plan_id",
"status",
"position",
"is_default",
"price",
"periodicity",
"commission",
"fixed_commission",
"products_limit",
"revenue_limit",
"vendor_store",
"categories",
"storefronts",
"allowed_vendor_subdomain",
"wk_show_contract",
"lowers_allowed_balance",
"grace_period_to_refill_balance",
"usergroups",
"is_fulfillment_by_marketplace"
],
"attached_condition": "((`s2cart`.`cscart_vendor_plans`.`status` = 'A') and ((0 <> find_in_set(1,`s2cart`.`cscart_vendor_plans`.`storefronts`)) or (`s2cart`.`cscart_vendor_plans`.`storefronts` is null) or (`s2cart`.`cscart_vendor_plans`.`storefronts` = '')))"
}
},
{
"table": {
"table_name": "cscart_vendor_plan_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"plan_id",
"lang_code"
],
"key_length": "10",
"ref": [
"s2cart.cscart_vendor_plans.plan_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "1.12",
"data_read_per_join": "800"
},
"used_columns": [
"plan_id",
"lang_code",
"plan",
"description",
"wk_contract"
]
}
}
]
}
}
}
Result
plan_id |
lang_code |
plan |
description |
wk_contract |
status |
position |
is_default |
price |
periodicity |
commission |
fixed_commission |
products_limit |
revenue_limit |
vendor_store |
categories |
storefronts |
allowed_vendor_subdomain |
wk_show_contract |
lowers_allowed_balance |
grace_period_to_refill_balance |
usergroups |
is_fulfillment_by_marketplace |
manual_rating |
5 |
en |
Exclusive |
|
|
A |
0 |
0 |
25000.00 |
month |
4.00 |
0.00 |
100000 |
2500000.00 |
1 |
|
1 |
1 |
N |
|
|
|
N |
|
2 |
en |
Bronze |
|
|
A |
10 |
1 |
0.00 |
month |
10.00 |
0.00 |
5000 |
500000.00 |
1 |
|
1 |
0 |
N |
|
|
|
N |
|
1 |
en |
Silver |
|
|
A |
20 |
0 |
2500.00 |
month |
7.50 |
0.00 |
5000 |
250000.00 |
1 |
|
1 |
1 |
N |
|
|
|
N |
|
3 |
en |
Gold |
|
|
A |
30 |
0 |
6000.00 |
month |
6.00 |
0.00 |
6000 |
500000.00 |
1 |
|
1 |
1 |
N |
|
|
|
N |
|
4 |
en |
Platinum |
|
|
A |
40 |
0 |
12500.00 |
month |
5.00 |
0.00 |
7500 |
1000000.00 |
1 |
|
1 |
1 |
N |
|
|
|
N |
|