mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(sqlstore): added index for dashboard_id in dashboard_tag table, fixes #5868
This commit is contained in:
parent
d65fbcbb42
commit
6257ae094c
@ -120,4 +120,9 @@ func addDashboardMigration(mg *Migrator) {
|
|||||||
mg.AddMigration("Add index for plugin_id in dashboard", NewAddIndexMigration(dashboardV2, &Index{
|
mg.AddMigration("Add index for plugin_id in dashboard", NewAddIndexMigration(dashboardV2, &Index{
|
||||||
Cols: []string{"org_id", "plugin_id"}, Type: IndexType,
|
Cols: []string{"org_id", "plugin_id"}, Type: IndexType,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
// dashboard_id index for dashboard_tag table
|
||||||
|
mg.AddMigration("Add index for dashboard_id in dashboard_tag", NewAddIndexMigration(dashboardTagV1, &Index{
|
||||||
|
Cols: []string{"dashboard_id"}, Type: IndexType,
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
|
8
scripts/import_many_dashboards.sh
Executable file
8
scripts/import_many_dashboards.sh
Executable file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user