mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:37:32 +00:00
perf: query data AS OF SYSTEM TIME
(#5231)
Queries the data in the storage layser at the timestamp when the call hit the API layer
This commit is contained in:
@@ -9,15 +9,16 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/zitadel/zitadel/internal/api/authz"
|
||||
"github.com/zitadel/zitadel/internal/database"
|
||||
"github.com/zitadel/zitadel/internal/domain"
|
||||
caos_errs "github.com/zitadel/zitadel/internal/errors"
|
||||
)
|
||||
|
||||
type AuthRequestCache struct {
|
||||
client *sql.DB
|
||||
client *database.DB
|
||||
}
|
||||
|
||||
func Start(dbClient *sql.DB) *AuthRequestCache {
|
||||
func Start(dbClient *database.DB) *AuthRequestCache {
|
||||
return &AuthRequestCache{
|
||||
client: dbClient,
|
||||
}
|
||||
|
Reference in New Issue
Block a user