[perf] dont immediately update view cache
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-21 11:29:26 -05:00
parent 9bd6bf7727
commit 2d63a7d109
7 changed files with 41 additions and 131 deletions

View File

@@ -78,11 +78,11 @@ func (s *Server) StartServer(wg *sync.WaitGroup, done <-chan struct{}) {
}
func (s *Server) RunScheduledTasks() {
log.Info("[RunScheduledTasks] Refreshing Temp Table Cache")
start := time.Now()
if err := s.API.DB.CacheTempTables(); err != nil {
log.Warn("[RunScheduledTasks] Refreshing Temp Table Cache Failure:", err)
}
log.Info("[RunScheduledTasks] Refreshing Temp Table Success")
log.Debug("[RunScheduledTasks] Completed in: ", time.Since(start))
}
func (s *Server) StopServer(wg *sync.WaitGroup, done chan<- struct{}) {