|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|statistic|select mt.tenant_id , mt.tenant_app_id , ifnull ( mt.shop_id , -1 ) shop_id , ifnull ( mt.grade_erp_id , -1 ) grade_erp_id , count ( * ) amount from member mb inner join member_extra mt on mb.id = mt.id where mb.tenant_app_id = :1 and mb.create_time <= :2 and mb.register_flag = :3 group by mt.tenant_id , mt.tenant_app_id , mt.shop_id , mt.grade_erp_id|41|5727|277||0|0|27785502|1012074|8108|403|
|statistic|select mb.tenant_id , mb.tenant_app_id , ifnull ( mt.shop_id , -1 ) shop_id , ifnull ( mb.source_type , 'unknow' ) source_type , count ( * ) amount from member mb inner join member_extra mt on mb.id = mt.id where mb.tenant_app_id = :1 and mb.create_time <= :2 and mb.register_flag = :3 group by mb.tenant_id , mb.tenant_app_id , mt.shop_id , mb.source_type|38|4983|207||0|0|27363628|1011902|6314|278|
|statistic|select mb.tenant_id , mb.tenant_app_id , ifnull ( mt.shop_id , -1 ) shop_id , sum ( if ( mb.subscribe_flag = 1 , 0 , 1 ) ) cancel_amount , sum ( if ( mb.subscribe_flag = 1 , 1 , 0 ) ) subscribe_amount , sum ( if ( mb.bind_flag = 1 , 1 , 0 ) ) bind_amount , sum ( if ( mb.full_flag = 1 , 1 , 0 ) ) full_amount from member mb inner join member_extra mt on mb.id = mt.id where mb.tenant_app_id = :1 and mb.create_time <= :2 and mb.register_flag = :3 group by mb.tenant_id , mb.tenant_app_id , mt.shop_id|37|4822|198||0|0|27037886|1011520|1819|87|
|statistic|select mt.tenant_id , mt.tenant_app_id , ifnull ( mt.shop_id , -1 ) shop_id , ifnull ( mt.employee_user_id , -1 ) employee_user_id , count ( * ) amount from member mb inner join member_extra mt on mb.id = mt.id where mb.tenant_app_id = :1 and mb.create_time <= :2 and mb.register_flag = :3 group by mt.tenant_id , mt.tenant_app_id , mt.shop_id , mt.employee_user_id|36|4947|280||0|0|26001196|1011956|18332|674|
|statistic|select mb.tenant_id , mb.tenant_app_id , ifnull ( mt.shop_id , -1 ) shop_id , ifnull ( mt.employee_user_id , -1 ) user_id , count ( * ) service_amount , sum ( if ( mb.external_user_id is not null , 1 , 0 ) ) corp_amount , sum ( ifnull ( mt.member_image_flag , 0 ) ) image_amount from statistic.member mb inner join statistic.member_extra mt on mb.id = mt.id where mb.tenant_app_id = :1 and mb.create_time <= :2 and mb.register_flag = :3 group by mb.tenant_id , mb.tenant_app_id , mt.shop_id , mt.employee_user_id|31|3972|180||0|0|22597224|1011956|15955|673|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( dept.shop_id , ifnull ( dept.dept_erp_id , 0 ) ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as userid , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeid , ifnull ( t1.age , - 1 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.mobile_no as mobileno , date_format ( t1.birthday , '%y-%m-%d' ) as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , ifnull ( t1.subscribe_flag , 0 ) as subscribeflag , ifnull ( t1.register_flag , 1 ) as registerflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , date_format ( t1.memorial_day , '%y-%m-%d' ) as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , t1.create_time ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , t1.external_user_id as externaluserid , ifnull ( t1.agency_id , 0 ) as agencyid , ifnull ( t1.partner_id , 0 ) as partnerid , ifnull ( la.match_label , 0 ) as matchlabel from tag_service.member_label_match_1060329032291295232_1060329411645128704 la join statistic.member t1 on t1.tenant_app_id = la.tenant_app_id and t1.user_id = la.user_id join statistic.member_extra t2 on t2.id = t1.id left join statistic.meta_erp_dept dept on t2.tenant_app_id = dept.tenant_app_id and t2.shop_id = dept.dept_erp_id where t1.id >= :1 and t1.id <= :2 limit :3 offset :4|2|266|137||0|0|723632|363632|5908|5000|
|statistic|delete from statistic.batch_step_execution where step_execution_id <= :1|1|184|184||0|0|893379|893379|0|0|
|statistic|delete from statistic.batch_job_execution where job_execution_id <= :1|1|335|335||0|0|4256828|4256828|0|0|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( dept.shop_id , ifnull ( dept.dept_erp_id , 0 ) ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as userid , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeid , ifnull ( t1.age , - 1 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.mobile_no as mobileno , date_format ( t1.birthday , '%y-%m-%d' ) as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , ifnull ( t1.subscribe_flag , 0 ) as subscribeflag , ifnull ( t1.register_flag , 1 ) as registerflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , date_format ( t1.memorial_day , '%y-%m-%d' ) as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , t1.create_time ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , t1.external_user_id as externaluserid , ifnull ( t1.agency_id , 0 ) as agencyid , ifnull ( t1.partner_id , 0 ) as partnerid , ifnull ( la.match_label , 0 ) as matchlabel from tag_service.member_label_match_891434732540272640_891435946115981312 la join statistic.member t1 on t1.tenant_app_id = la.tenant_app_id and t1.user_id = la.user_id join statistic.member_extra t2 on t2.id = t1.id left join statistic.meta_erp_dept dept on t2.tenant_app_id = dept.tenant_app_id and t2.shop_id = dept.dept_erp_id where t1.id >= :1 and t1.id <= :2 limit :3 offset :4|1|112|112||0|0|320000|320000|5000|5000|
