mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Unified Storage: Add index for poller query (#95293)
add index for poller query
This commit is contained in:
parent
d89235aa8c
commit
2ffb88b0ee
@ -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…
Reference in New Issue
Block a user