feat: 更新数据库索引和分页逻辑,优化查询性能

This commit is contained in:
TsMask
2025-08-26 14:37:49 +08:00
parent 3a4e9768fa
commit 888b1095f7
7 changed files with 31 additions and 6 deletions

View File

@@ -111,7 +111,6 @@ func (s BackupExportCDRProcessor) exportIMS(hour int, rmUID, fileType string) st
StartTime: start.UnixMilli(),
EndTime: end.UnixMilli(),
PageNum: 1,
PageSize: 30000,
}
rows, total := s.imsCDREventService.SelectPage(query)
if total == 0 {
@@ -404,7 +403,6 @@ func (s BackupExportCDRProcessor) exportSMSC(hour int, rmUID, fileType string) s
StartTime: start.UnixMilli(),
EndTime: end.UnixMilli(),
PageNum: 1,
PageSize: 30000,
}
rows, total := s.smscCDREventService.SelectPage(query)
if total == 0 {
@@ -624,7 +622,6 @@ func (s BackupExportCDRProcessor) exportSMF(hour int, rmUID, fileType string) st
StartTime: start.UnixMilli(),
EndTime: end.UnixMilli(),
PageNum: 1,
PageSize: 30000,
}
rows, total := s.smfCDREventService.SelectPage(query)
if total == 0 {
@@ -1036,7 +1033,6 @@ func (s BackupExportCDRProcessor) exportSGWC(hour int, rmUID, fileType string) s
StartTime: start.UnixMilli(),
EndTime: end.UnixMilli(),
PageNum: 1,
PageSize: 30000,
}
rows, total := s.sgwcCDREventService.SelectPage(query)
if total == 0 {