mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:57: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:
@@ -18,7 +18,8 @@ var (
|
||||
` projections.org_metadata2.sequence,` +
|
||||
` projections.org_metadata2.key,` +
|
||||
` projections.org_metadata2.value` +
|
||||
` FROM projections.org_metadata2`
|
||||
` FROM projections.org_metadata2` +
|
||||
` AS OF SYSTEM TIME '-1 ms'`
|
||||
orgMetadataCols = []string{
|
||||
"creation_date",
|
||||
"change_date",
|
||||
@@ -34,7 +35,8 @@ var (
|
||||
` projections.org_metadata2.key,` +
|
||||
` projections.org_metadata2.value,` +
|
||||
` COUNT(*) OVER ()` +
|
||||
` FROM projections.org_metadata2`
|
||||
` FROM projections.org_metadata2` +
|
||||
` AS OF SYSTEM TIME '-1 ms'`
|
||||
orgMetadataListCols = []string{
|
||||
"creation_date",
|
||||
"change_date",
|
||||
@@ -242,7 +244,7 @@ func Test_OrgMetadataPrepares(t *testing.T) {
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
assertPrepare(t, tt.prepare, tt.object, tt.want.sqlExpectations, tt.want.err)
|
||||
assertPrepare(t, tt.prepare, tt.object, tt.want.sqlExpectations, tt.want.err, defaultPrepareArgs...)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user