Query time 0.00121
JSON explain
{
"query_block": {
"select_id": 1,
"having_condition": "processor_status = 'A'",
"filesort": {
"sort_key": "cscart_payments.position",
"temporary_table": {
"table": {
"table_name": "cscart_payments",
"access_type": "ALL",
"possible_keys": ["c_status"],
"rows": 9,
"filtered": 100,
"attached_condition": "cscart_payments.`status` = 'A' and (cscart_payments.usergroup_ids = '' or find_in_set(0,cscart_payments.usergroup_ids) or find_in_set(1,cscart_payments.usergroup_ids))"
},
"table": {
"table_name": "cscart_payment_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["payment_id", "lang_code"],
"ref": ["vietpom_dev.cscart_payments.payment_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_payment_descriptions.lang_code = 'vi')"
},
"table": {
"table_name": "cscart_payment_processors",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["processor_id"],
"ref": ["vietpom_dev.cscart_payments.processor_id"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "cscart_addons",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "98",
"used_key_parts": ["addon"],
"ref": ["vietpom_dev.cscart_payment_processors.addon"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(trigcond(cscart_payment_processors.addon is not null))"
},
"block-nl-join": {
"table": {
"table_name": "storefronts_payments",
"access_type": "index",
"key": "PRIMARY",
"key_length": "8",
"used_key_parts": ["storefront_id", "payment_id"],
"rows": 1,
"filtered": 100,
"using_index": true
},
"buffer_type": "flat",
"buffer_size": "89Kb",
"join_type": "BNL",
"attached_condition": "trigcond(storefronts_payments.storefront_id = 1 or storefronts_payments.storefront_id is null) and trigcond(storefronts_payments.payment_id = cscart_payments.payment_id)"
}
}
}
}
}
Result
| payment_id |
company_id |
usergroup_ids |
position |
status |
template |
processor_id |
processor_params |
a_surcharge |
p_surcharge |
tax_ids |
localization |
payment_category |
type |
users |
vendor_restriction |
payment |
description |
instructions |
surcharge_title |
lang_code |
processor_status |
processor_type |
processor_script |
| 6 |
0 |
0,1,2 |
1 |
A |
views/orders/components/payments/cod.tpl |
0 |
|
0.000 |
0.000 |
|
|
tab3 |
E |
|
A |
Pay Later |
Cash on Delivery / Credit Terms |
|
|
vi |
A |
|
|