|数据库名称|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|72|10808|190||0|0|442792162|6614300|2050|50|
|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|44|5951|337||0|0|30181040|1040420|7655|327|
|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|43|5712|310||0|0|28416912|1039862|1907|87|
|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|43|6128|275||0|0|26339022|1040500|7477|406|
|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|40|5569|332||0|0|26594824|1040372|29262|1245|
|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|36|5020|313||0|0|22038130|1040062|27993|1245|
|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|16|1929|134||0|0|6135303|519854|955|87|
|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 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|4|426|110||0|0|3079655|819655|15000|5000|
|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_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 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|235|125||0|0|1091636|551636|7909|5000|
|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_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 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|211|106||0|0|774288|394288|8572|5000|
|statistic|select id , timestampdiff ( year , solar_birthday , '2021-06-0100:00:00.0' ) age , '2021-06-0100:59:59.0' update_time from member where tenant_app_id = :1 and birthday_month_day = :2 limit :3 offset :4|1|105|105||0|0|267447|267447|243|243|
|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_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 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|105|105||0|0|645095|645095|0|0|
|statistic|delete from statistic.batch_job_execution_params where job_execution_id <= :1|1|694|694||0|0|4668302|4668302|0|0|
|statistic|delete from statistic.batch_job_execution where job_execution_id <= :1|1|295|295||0|0|1862273|1862273|0|0|
