-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: faster SQL queries for checks and strict check mode (#1171)
With this change we introduce an experimental strict mode that drastically reduces the number of SQL queries performed during checks. This is experimental to allow adjusting its behavior in a breaking manner, but it is ready for production usage. Also some of the non-strict queries are optimized. Co-authored-by: Patrik <[email protected]>
- Loading branch information
Showing
26 changed files
with
714 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
The schemas in this directory are meant for external and public use. | ||
|
||
The config schema is generated from the internal one at | ||
`internal/driver/config/config.schema.json`, so in case of changes to the config | ||
schema, please edit that internal schema instead. | ||
`embedx/config.schema.json`, so in case of changes to the config schema, please | ||
edit that internal schema instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
goos: linux | ||
goarch: amd64 | ||
pkg: github.com/ory/keto/internal/check | ||
cpu: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz | ||
BenchmarkComputedUsersets/Computed_userset-8 14576 81280 ns/op 1.000 queries/op 17675 B/op 364 allocs/op | ||
PASS | ||
ok github.com/ory/keto/internal/check 2.055s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
goos: linux | ||
goarch: amd64 | ||
pkg: github.com/ory/keto/internal/check | ||
cpu: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz | ||
BenchmarkComputedUsersets/Computed_userset-8 2155 583306 ns/op 9.000 queries/op 109370 B/op 1556 allocs/op | ||
PASS | ||
ok github.com/ory/keto/internal/check 1.351s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.