Query time 0.00090
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.97"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "1.50"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_payments",
"access_type": "ALL",
"possible_keys": [
"c_status"
],
"rows_examined_per_scan": 15,
"rows_produced_per_join": 1,
"filtered": "10.00",
"cost_info": {
"read_cost": "1.60",
"eval_cost": "0.15",
"prefix_cost": "1.75",
"data_read_per_join": "4K"
},
"used_columns": [
"payment_id",
"company_id",
"usergroup_ids",
"position",
"status",
"template",
"processor_id",
"processor_params",
"a_surcharge",
"p_surcharge",
"tax_ids",
"localization",
"payment_category"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_payments`.`status` = 'A') and ((`nuie_scalesta_net`.`cscart_payments`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`cscart_payments`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`cscart_payments`.`usergroup_ids`))))"
}
},
{
"table": {
"table_name": "cscart_payment_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"payment_id",
"lang_code"
],
"key_length": "9",
"ref": [
"nuie_scalesta_net.cscart_payments.payment_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.38",
"eval_cost": "0.15",
"prefix_cost": "2.28",
"data_read_per_join": "2K"
},
"used_columns": [
"payment_id",
"payment",
"description",
"instructions",
"surcharge_title",
"lang_code"
]
}
},
{
"table": {
"table_name": "cscart_payment_processors",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"processor_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.cscart_payments.processor_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.38",
"eval_cost": "0.15",
"prefix_cost": "2.80",
"data_read_per_join": "4K"
},
"used_columns": [
"processor_id",
"processor_script",
"type",
"addon"
]
}
},
{
"table": {
"table_name": "cscart_addons",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"addon"
],
"key_length": "98",
"ref": [
"nuie_scalesta_net.cscart_payment_processors.addon"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.38",
"eval_cost": "0.15",
"prefix_cost": "3.33",
"data_read_per_join": "2K"
},
"used_columns": [
"addon",
"status"
]
}
},
{
"table": {
"table_name": "storefronts_payments",
"access_type": "index",
"key": "idx_storefront_id",
"used_key_parts": [
"storefront_id"
],
"key_length": "4",
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"using_index": true,
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.15",
"prefix_cost": "4.48",
"data_read_per_join": "24"
},
"used_columns": [
"storefront_id",
"payment_id"
],
"attached_condition": "(<if>(found_match(storefronts_payments), ((`nuie_scalesta_net`.`storefronts_payments`.`storefront_id` = 1) or (`nuie_scalesta_net`.`storefronts_payments`.`storefront_id` is null)), true) and <if>(is_not_null_compl(storefronts_payments), (`nuie_scalesta_net`.`storefronts_payments`.`payment_id` = `nuie_scalesta_net`.`cscart_payments`.`payment_id`), true))"
}
}
]
}
}
}
Result
| payment_id |
company_id |
usergroup_ids |
position |
status |
template |
processor_id |
processor_params |
a_surcharge |
p_surcharge |
tax_ids |
localization |
payment_category |
payment |
description |
instructions |
surcharge_title |
lang_code |
processor_status |
processor_type |
processor_script |
| 19 |
0 |
0 |
0 |
A |
views/orders/components/payments/cc_outside.tpl |
108 |
a:9:{s:19:"endpoint_url_hosted";s:14:"www.google.com";s:25:"endpoint_url_hosted_modal";s:13:"www.bbc.co.uk";s:26:"endpoint_url_hosted_direct";s:12:"www.bing.com";s:11:"merchant_id";s:6:"123456";s:10:"passphrase";s:6:"abc123";s:16:"integration_type";s:6:"hosted";s:12:"currencycode";s:0:"";s:11:"countrycode";s:0:"";s:10:"responsive";s:1:"Y";} |
0.000 |
0.000 |
|
|
tab1 |
Coravant Test Payment |
|
|
|
en |
A |
P |
coravant_payment_addon.php |
| 15 |
0 |
0 |
5 |
A |
views/orders/components/payments/cc_outside.tpl |
106 |
a:6:{s:11:"merchant_id";s:6:"115618";s:10:"passphrase";s:17:"Engine0Milk12Next";s:16:"integration_type";s:6:"hosted";s:12:"currencycode";s:0:"";s:11:"countrycode";s:0:"";s:10:"responsive";s:1:"Y";} |
0.000 |
0.000 |
|
|
tab1 |
Debit/Credit Card |
|
|
|
en |
A |
P |
payment_network.php |
| 7 |
0 |
0 |
6 |
A |
views/orders/components/payments/po.tpl |
0 |
|
0.000 |
0.000 |
|
|
tab3 |
Purchase Order |
|
|
|
en |
A |
|
|