|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|statistic|SELECT mb.tenant_id,mb.tenant_app_id,ifnull(mt.shop_id,?)shop_id,ifnull(mt.grade_erp_id,?)grade_erp_id,count(*)amount FROM member mb INNER JOIN member_extra mt ON mb.tenant_id=mt.tenant_id AND mb.id=mt.id WHERE mb.tenant_id=? AND mb.tenant_app_id=? AND mb.create_time<=? AND mb.register_flag=? GROUP BY mb.tenant_id,mb.tenant_app_id,mt.shop_id,mt.grade_erp_id|9|1070|173||0|0|10004496|1614676|2326|461|
|statistic|SELECT mb.tenant_id,mb.tenant_app_id,ifnull(mt.shop_id,?)shop_id,sum(if(mb.subscribe_flag=?,?,?))cancel_amount,sum(if(mb.subscribe_flag=?,?,?))subscribe_amount,sum(if(mb.bind_flag=?,?,?))bind_amount,sum(if(mb.full_flag=?,?,?))full_amount FROM member mb INNER JOIN member_extra mt ON mb.tenant_id=mt.tenant_id AND mb.id=mt.id WHERE mb.tenant_id=? AND mb.tenant_app_id=? AND mb.create_time<=? AND mb.register_flag=? GROUP BY mb.tenant_id,mb.tenant_app_id,mt.shop_id|9|1171|209||0|0|10172858|1613924|522|88|
|statistic|SELECT mb.tenant_id,mb.tenant_app_id,ifnull(mt.shop_id,?)shop_id,ifnull(mt.employee_user_id,?)employee_user_id,count(*)amount FROM member mb INNER JOIN member_extra mt ON mb.tenant_id=mt.tenant_id AND mb.id=mt.id WHERE mb.tenant_id=? AND mb.tenant_app_id=? AND mb.create_time<=? AND mb.register_flag=? GROUP BY mb.tenant_id,mb.tenant_app_id,mt.shop_id,mt.employee_user_id|7|904|163||0|0|7614086|1616674|6059|1463|
|v4_statistic|SELECT statistic_date,statistic_month,statistic_version,busi_date,sale_status,tenant_id,tenant_app_id,shop_id,employee_id,sales_order,sales_amount,birth_order,birth_amount,no_sales_order,no_sales_amount,new_sales_order,new_sales_amount,old_sales_order,old_sales_amount,update_time FROM bi_member_sales WHERE tenant_id=? AND tenant_app_id=? AND update_time>=? AND tenant_id=? AND tenant_app_id=? LIMIT ? OFFSET ?|6|697|143||0|0|750028|180033|25028|5000|
|statistic|SELECT mb.tenant_id,mb.tenant_app_id,ifnull(mt.shop_id,?)shop_id,ifnull(mt.employee_user_id,?)user_id,count(*)service_amount,sum(if(mb.external_user_id IS NOT ?,?,?))corp_amount,sum(ifnull(mt.member_image_flag,?))image_amount FROM statistic.member mb INNER JOIN statistic.member_extra mt ON mb.tenant_id=mt.tenant_id AND mb.id=mt.id WHERE mb.tenant_id=? AND mb.tenant_app_id=? AND mb.create_time<=? AND mb.register_flag=? GROUP BY mb.tenant_id,mb.tenant_app_id,mt.shop_id,mt.employee_user_id|4|587|202||0|0|4924238|1616674|4062|1463|
|tag_service|SELECT t?.id,t?.tenant_id,t?.tenant_app_id,t?.member_user_id AS member_id,t?.match_label,t?.match_label?,t?.match_feature_label FROM statistic.member t? JOIN tag_service.member_label_match_? t? ON t?.tenant_app_id=t?.tenant_app_id AND t?.user_id=t?.user_id WHERE t?.tenant_id=? AND t?.tenant_app_id=? AND t?.update_time>=? AND t?.member_user_id IS NOT ? ORDER BY t?.id LIMIT ? OFFSET ?|3|415|173||0|0|6652243|2420411|5084|2542|
|statistic|SELECT id,tenant_app_id,start_time,statistic_date,busi_type,type,status,create_time,update_time FROM timer_execute_log WHERE (status=?)|2|476|296||0|0|16918027|8460851|12|12|
|v4_statistic|DELETE FROM bi_member_sales WHERE tenant_id=? AND tenant_app_id=? AND busi_date=? AND statistic_version=? AND tenant_id=? AND tenant_app_id=?|1|283|283||0|0|1270976|1270976|0|0|
|statistic|DELETE je FROM statistic.BATCH_JOB_EXECUTION_PARAMS je JOIN statistic.BATCH_JOB_EXECUTION e ON je.job_execution_id=e.job_execution_id WHERE e.job_execution_id<=?|1|214|214||0|0|3888998|3888998|0|0|
|statistic|DELETE s FROM statistic.BATCH_STEP_EXECUTION s JOIN statistic.BATCH_JOB_EXECUTION e ON s.job_execution_id=e.job_execution_id WHERE s.step_execution_id<=?|1|100|100||0|0|3929590|3929590|0|0|
