fix(setup): optimise events indexes (#5316)

This commit is contained in:
Silvan
2023-03-01 00:11:23 +00:00
committed by GitHub
parent 48f9815b7c
commit 3dbb6f7c67
10 changed files with 196 additions and 32 deletions
+23
View File
@@ -0,0 +1,23 @@
package setup
import (
"embed"
"github.com/zitadel/zitadel/internal/database"
)
var (
//go:embed 09/cockroach/index.sql
//go:embed 09/postgres/index.sql
stmts09 embed.FS
)
func New09(db *database.DB) *EventstoreIndexesNew {
return &EventstoreIndexesNew{
dbClient: db,
name: "09_optimise_indexes",
step: "09",
fileName: "index.sql",
stmts: stmts09,
}
}