Parcourir la source

feat(sqlstore): added index for dashboard_id in dashboard_tag table, fixes #5868

Torkel Ödegaard il y a 9 ans
Parent
commit
6257ae094c

+ 5 - 0
pkg/services/sqlstore/migrations/dashboard_mig.go

@@ -120,4 +120,9 @@ func addDashboardMigration(mg *Migrator) {
 	mg.AddMigration("Add index for plugin_id in dashboard", NewAddIndexMigration(dashboardV2, &Index{
 		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,
+	}))
 }

Fichier diff supprimé car celui-ci est trop grand
+ 5 - 0
scripts/import_many_dashboards.sh


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff