From e87d8b89e4f76d2eac7de5005ae3f131756f99ca Mon Sep 17 00:00:00 2001 From: cesar liu Date: Tue, 31 May 2022 18:20:02 +0800 Subject: [PATCH] =?UTF-8?q?debug=20-=20=E9=9B=BB=E7=AB=99=E5=95=9F?= =?UTF-8?q?=E7=94=A8=20-=20=E4=B8=96=E6=96=B0=E5=9C=96=E6=9B=B8=E9=A4=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Repository/Implement/PowerStationRepository.cs | 2 +- SolarPower/Startup.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/SolarPower/Repository/Implement/PowerStationRepository.cs b/SolarPower/Repository/Implement/PowerStationRepository.cs index 13dc5ad..d56dbc4 100644 --- a/SolarPower/Repository/Implement/PowerStationRepository.cs +++ b/SolarPower/Repository/Implement/PowerStationRepository.cs @@ -5996,7 +5996,7 @@ namespace SolarPower.Repository.Implement try { // var sql = $@"SHOW INDEX from '{dbname}'.s{code}01_station where column_name <> 'ID';"; - var sql = $@"SELECT COUNT(1) index_count --, TABLE_NAME, GROUP_CONCAT(DISTINCT(index_name) SEPARATOR ',\n ') indexes + var sql = $@"SELECT COUNT(1) index_count -- , TABLE_NAME, GROUP_CONCAT(DISTINCT(index_name) SEPARATOR ',\n ') indexes FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA = '{dbname}' and table_name = 's{code}01_station' AND INDEX_NAME != 'primary' diff --git a/SolarPower/Startup.cs b/SolarPower/Startup.cs index ef4e04d..8b0ba21 100644 --- a/SolarPower/Startup.cs +++ b/SolarPower/Startup.cs @@ -87,7 +87,6 @@ namespace SolarPower { options.IdleTimeout = TimeSpan.FromMinutes(loginExpireMinute); }); - services.AddApplicationInsightsTelemetry(); #region ¥[¤J­I´º°õ¦æ //services.AddHostedService();