debug - 電站啟用 - 世新圖書館

This commit is contained in:
cesar liu 2022-05-31 18:20:02 +08:00
parent 00d2cf0b3f
commit e87d8b89e4
2 changed files with 1 additions and 2 deletions

View File

@ -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'

View File

@ -87,7 +87,6 @@ namespace SolarPower
{
options.IdleTimeout = TimeSpan.FromMinutes(loginExpireMinute);
});
services.AddApplicationInsightsTelemetry();
#region
//services.AddHostedService<OperationScheduleBackgroundService>();