|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|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|74|9033|194||0|0|51901266|1000392|36838|1594|
|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|73|9435|205||0|0|50075612|1000658|13452|402|
|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|68|8609|218||0|0|48015156|1000392|34829|1609|
|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|66|8252|217||0|0|46333062|1000030|2961|87|
|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|65|8209|218||0|0|45783078|1000410|9592|277|
|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_827516559562940416_827519836937560064 la join statistic.member t1 on la.id = t1.id join statistic.member_extra t2 on t1.id = t2.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 la.id >= :1 and la.id <= :2 limit :3 offset :4|2|227|116||0|0|800000|400000|5000|5000|
|statistic|delete from statistic.batch_job_execution_params where job_execution_id <= :1|1|494|494||0|0|4340634|4340634|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_940405107533606912_940487380991799296 la join statistic.member t1 on la.id = t1.id join statistic.member_extra t2 on t1.id = t2.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 la.id >= :1 and la.id <= :2 limit :3 offset :4|1|121|121||0|0|398872|398872|4718|4718|
|statistic|delete from statistic.batch_job_execution where job_execution_id <= :1|1|147|147||0|0|990143|990143|0|0|
