|数据库名称|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|15|1926|197||0|0|16565186|1616570|3987|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|12|1720|253||0|0|12480634|1615662|730|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|11|1529|223||0|0|11841790|1618418|9852|1466|
|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|9|1323|234||0|0|9987950|1618418|8154|1466|
|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 ?|8|974|139||0|0|420487|60487|35487|5000|
|statistic|SELECT id,tenant_app_id,start_time,statistic_date,busi_type,type,status,create_time,update_time FROM timer_execute_log WHERE (status=?)|4|828|286||0|0|33997212|8527939|24|12|
|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 ?|4|444|126||0|0|7129403|2423018|14794|5000|
|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=?|3|1023|453||0|0|2415690|1310694|0|0|
|v4_statistic|SELECT DATE_FORMAT(t?.sales_date,?) AS statistic_date,DATE_FORMAT(t?.sales_date,?) AS statistic_month,? AS statistic_version,DATE_FORMAT(t?.create_time,?) AS busi_date,? AS sale_status,t?.tenant_id,t?.tenant_app_id,t?.shop_id,t?.employee_id,count(*) AS birthOrder,ifnull(sum(t?.amount),?) AS birthAmount FROM biz_erp_sales t? JOIN member_? t? ON t?.tenant_id=t?.tenant_id AND t?.member_id=t?.id AND DATE_FORMAT(t?.sales_date,?)=DATE_FORMAT(t?.curr_month_birthday,?) WHERE t?.tenant_id=? AND t?.tenant_app_id=? AND t?.create_time>=? AND t?.create_time<? AND t?.sales_status IN (?) AND t?.tenant_id=? AND t?.tenant_app_id=? GROUP BY t?.tenant_id,t?.tenant_app_id,t?.shop_id,t?.employee_id,DATE_FORMAT(t?.sales_date,?),DATE_FORMAT(t?.sales_date,?),DATE_FORMAT(t?.create_time,?) LIMIT ? OFFSET ?|3|399|146||0|0|1985827|665267|3269|2752|
|v4_statistic|SELECT DATE_FORMAT(t?.sales_date,?) AS statistic_date,DATE_FORMAT(t?.sales_date,?) AS statistic_month,? AS statistic_version,DATE_FORMAT(t?.update_time,?) AS busi_date,? AS sale_status,t?.tenant_id,t?.tenant_app_id,t?.shop_id,t?.employee_id,?*count(*) AS birthOrder,?*ifnull(sum(t?.amount),?) AS birthAmount FROM biz_erp_sales t? JOIN member_? t? ON t?.tenant_id=t?.tenant_id AND t?.member_id=t?.id AND DATE_FORMAT(t?.sales_date,?)=DATE_FORMAT(t?.curr_month_birthday,?) WHERE t?.tenant_id=? AND t?.tenant_app_id=? AND t?.update_time>=? AND t?.update_time<? AND t?.sales_status=? AND t?.tenant_id=? AND t?.tenant_app_id=? GROUP BY t?.tenant_id,t?.tenant_app_id,t?.shop_id,t?.employee_id,DATE_FORMAT(t?.sales_date,?),DATE_FORMAT(t?.sales_date,?),DATE_FORMAT(t?.update_time,?) LIMIT ? OFFSET ?|2|210|109||0|0|1319528|659765|1|1|
|tag_service|SELECT t?.id,t?.tenant_id AS tenantId,t?.tenant_app_id AS tenantAppId,ifnull(t?.shop_id,ifnull(t?.shop_id,?)) AS shopId,t?.user_id AS userId,ifnull(t?.employee_user_id,ifnull(t?.employee_user_id,?)) AS employeeId,ifnull(t?.age,?) AS age,ifnull(t?.sex,?) AS sex,t?.mobile_no AS mobileNo,DATE_FORMAT(t?.birthday,?) AS birthday,ifnull(t?.birthday_is_lunar,?) AS birthdayIsLunar,t?.birthday_month_day AS birthdayMonthDay,t?.identity,t?.source_type AS sourceType,ifnull(t?.subscribe_flag,?) AS subscribeFlag,ifnull(t?.register_flag,?) AS registerFlag,t?.tenant_app_open_id AS tenantAppOpenId,ifnull(t?.bind_flag,?) AS bindFlag,ifnull(t?.full_flag,?) AS fullFlag,DATE_FORMAT(t?.memorial_day,?) AS memorialDay,ifnull(t?.memorial_day_is_lunar,?) AS memorialDayIsLunar,ifnull(t?.grade_erp_id,?) AS gradeErpId,ifnull(t?.sales_balance,?) AS salesBalance,ifnull(t?.sales_amount,?) AS salesAmount,ifnull(t?.consumption_integral,?) AS consumptionIntegral,ifnull(t?.cumulation,?) AS cumulation,ifnull(t?.balance,?) AS balance,ifnull(t?.service_amount,?) AS serviceAmount,ifnull(t?.registe_time,t?.create_time) AS registeTime,t?.first_shop_time AS firstShopTime,t?.last_shop_time AS lastShopTime,t?.first_sales_time AS firstSalesTime,t?.last_sales_time AS lastSalesTime,t?.last_login_time AS lastLoginTime,t?.last_score_time AS lastScoreTime,t?.follow_time AS followTime,t?.cancel_follow_time AS cancelFollowTime,t?.bind_time AS bindTime,t?.last_service_time AS lastServiceTime,t?.category_id AS categoryId,t?.last_sale_balance AS lastSaleBalance,t?.last_stone_weight AS lastStoneWeight,t?.last_gold_weight AS lastGoldweight,t?.last_category_id AS lastCategoryId,t?.external_user_id AS externalUserId,ifnull(t?.agency_id,?) AS agencyId,ifnull(t?.partner_id,?) AS partnerId,t?.constellation,t?.zodiac,t?.lately_birthday AS latelyBirthday,t?.lately_memorial_day AS latelyMemorialDay,ifnull(la.match_label,?) AS matchLabel,ifnull(la.match_label?,?) AS matchLabel?,ifnull(la.match_feature_label,?) AS matchFeatureLabel,t?.sales_brand AS salesBrand,t?.sales_craft AS salesCraft,t?.single_consume_moneys AS singleConsumeMoneyStr,t?.sale_times AS saleTimeStr FROM tag_service.member_label_match_? la JOIN statistic.member t? ON t?.tenant_app_id=la.tenant_app_id AND t?.user_id=la.user_id JOIN statistic.member_extra t? ON t?.tenant_id=t?.tenant_id AND t?.id=t?.id WHERE t?.tenant_id=? AND t?.tenant_id=? AND t?.id>=? AND t?.id<=? LIMIT ? OFFSET ?|1|155|155||0|0|909280|909280|0|0|
|v4_statistic|DELETE FROM member_mark_label_change WHERE (is_sync_wx=? AND create_time<?)|1|126|126||0|0|1143113|1143113|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|224|224||0|0|3889493|3889493|0|0|
|v4_statistic|DELETE FROM BATCH_JOB_EXECUTION_PARAMS WHERE job_execution_id<=?|1|120|120||0|0|350106|350106|0|0|
