Unified Storage: Add index for poller query (#95293)

add index for poller query
pull/94965/head
owensmallwood 9 months ago committed by GitHub
parent d89235aa8c
commit 2ffb88b0ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      pkg/storage/unified/sql/db/migrations/resource_mig.go

@ -105,5 +105,9 @@ func initResourceTables(mg *migrator.Migrator) string {
Name: "previous_resource_version", Type: migrator.DB_BigInt, Nullable: true,
}))
mg.AddMigration("Add index to resource_history for polling", migrator.NewAddIndexMigration(resource_history_table, &migrator.Index{
Cols: []string{"group", "resource", "resource_version"}, Type: migrator.IndexType,
}))
return marker
}

Loading…
Cancel
Save