[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

@@ -35,6 +35,7 @@ const (
adminBackup adminAction = "BACKUP"
adminRestore adminAction = "RESTORE"
adminMetadataMatch adminAction = "METADATA_MATCH"
adminCacheTables adminAction = "CACHE_TABLES"
)
type importType string
@@ -373,6 +374,8 @@ func (api *API) appPerformAdminAction(c *gin.Context) {
switch rAdminAction.Action {
case adminImport:
// TODO
case adminCacheTables:
go api.DB.CacheTempTables()
case adminMetadataMatch:
// TODO
// 1. Documents xref most recent metadata table?