Query time 0.00033
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "10.46"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "1.35"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_payments",
"access_type": "ALL",
"rows_examined_per_scan": 25,
"rows_produced_per_join": 2,
"filtered": "10.00",
"cost_info": {
"read_cost": "2.50",
"eval_cost": "0.25",
"prefix_cost": "2.75",
"data_read_per_join": "6K"
},
"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": "(`biobronz_storeh`.`cscart_payments`.`status` = 'A')"
}
},
{
"table": {
"table_name": "cscart_payment_processors",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"processor_id"
],
"key_length": "3",
"ref": [
"biobronz_storeh.cscart_payments.processor_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "10.00",
"cost_info": {
"read_cost": "2.50",
"eval_cost": "0.03",
"prefix_cost": "5.50",
"data_read_per_join": "794"
},
"used_columns": [
"processor_id",
"processor_script",
"type",
"addon"
],
"attached_condition": "(`biobronz_storeh`.`cscart_payment_processors`.`processor_script` = 'stripe.php')"
}
},
{
"table": {
"table_name": "cscart_addons",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"addon"
],
"key_length": "98",
"ref": [
"biobronz_storeh.cscart_payment_processors.addon"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.06",
"eval_cost": "0.03",
"prefix_cost": "5.59",
"data_read_per_join": "474"
},
"used_columns": [
"addon",
"status"
]
}
},
{
"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": [
"biobronz_storeh.cscart_payments.payment_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.19",
"eval_cost": "0.03",
"prefix_cost": "5.80",
"data_read_per_join": "486"
},
"used_columns": [
"payment_id",
"payment",
"description",
"instructions",
"surcharge_title",
"lang_code"
]
}
},
{
"table": {
"table_name": "storefronts_payments",
"access_type": "index",
"key": "idx_storefront_id",
"used_key_parts": [
"storefront_id"
],
"key_length": "4",
"rows_examined_per_scan": 27,
"rows_produced_per_join": 1,
"filtered": "20.00",
"using_index": true,
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "3.18",
"eval_cost": "0.14",
"prefix_cost": "9.12",
"data_read_per_join": "21"
},
"used_columns": [
"storefront_id",
"payment_id"
],
"attached_condition": "(<if>(found_match(storefronts_payments), ((`biobronz_storeh`.`storefronts_payments`.`storefront_id` = 12) or (`biobronz_storeh`.`storefronts_payments`.`storefront_id` is null)), true) and <if>(is_not_null_compl(storefronts_payments), (`biobronz_storeh`.`storefronts_payments`.`payment_id` = `biobronz_storeh`.`cscart_payments`.`payment_id`), true))"
}
}
]
}
}
}