|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|tag_service|select id , tenant_id , tenant_app_id , user_id , old_label_ids , new_label_ids , is_sync_wx , is_sync_cwx , error_msg , create_time , update_time from member_mark_label_change where ( tenant_app_id = :1 and is_sync_wx = :2 ) order by id asc limit :3|70|11374|199||0|0|517771148|7406349|766|50|
|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|30|4769|282||0|0|22361020|1048128|7144|407|
|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|27|4029|237||0|0|19702408|1047942|4915|329|
|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|27|4034|268||0|0|19412342|1047458|1243|87|
|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|24|3395|264||0|0|16536930|1048006|11441|939|
|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|22|3403|246||0|0|16044964|1048006|11303|939|
|statistic|select tenant_id , tenant_app_id , ifnull ( shop_id , -1 ) shop_id , sum ( if ( tenant_app_open_id is null and external_user_id is null , :1 , :2 ) ) normal_amount , sum ( if ( tenant_app_open_id is not null and external_user_id is null , :3 , :4 ) ) app_amount , sum ( if ( external_user_id is not null , :5 , :6 ) ) corp_amount from member where tenant_app_id = :7 and create_time <= :8 and register_flag = :9 group by tenant_id , tenant_app_id , shop_id|3|333|123||0|0|1170898|523564|144|87|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( t2.shop_id , ifnull ( t1.shop_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 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 where t1.id >= :1 and t1.id <= :2 limit :3 offset :4|2|215|114||0|0|1385000|700000|10000|5000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( t2.shop_id , ifnull ( t1.shop_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_821229068421742592_821504909596737536 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 where t1.id >= :1 and t1.id <= :2 limit :3 offset :4|2|281|146||0|0|940696|470696|5232|5000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( t2.shop_id , ifnull ( t1.shop_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_823688108565368832_823695523771879424 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 where t1.id >= :1 and t1.id <= :2 limit :3 offset :4|1|114|114||0|0|440646|440646|1882|1882|
|statistic|delete from statistic.batch_job_execution_params where job_execution_id <= :1|1|737|737||0|0|4709590|4709590|0|0|
|mysql|alter table statistic.result_employee_value add column `no_add_value_amount` int ( 11 ) default '0' comment '不添加增值商品数'|1|389|389||0|0|0|0|0|0|
|statistic|delete from statistic.batch_step_execution where step_execution_id <= :1|1|229|229||0|0|924638|924638|0|0|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( t2.shop_id , ifnull ( t1.shop_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_916119427764772864_918632942668926976 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 where t1.id >= :1 and t1.id <= :2 limit :3 offset :4|1|111|111||0|0|299199|299199|4733|4733|
|statistic|delete from statistic.batch_job_execution where job_execution_id <= :1|1|363|363||0|0|2405655|2405655|0|0|
