performance indexes

This commit is contained in:
Michael Quigley 2024-04-16 14:34:38 -04:00
parent 5a8ffdfd7e
commit cf449b8291
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
3 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,8 @@
CHANGE: Update to OpenZiti SDK (`github.com/openziti/sdk-golang`) at `v0.23.10`.
CHANGE: Added indexes to `environments`, `shares`, and `frontends` tables to improve overall query performance on both PostgreSQL and Sqlite.
FIX: Also update the Python SDK to include the permission mode and access grants fields on the `ShareRequest` (https://github.com/openziti/zrok/issues/432)
FIX: Add a way to find the username on Linux when /etc/passwd and stdlib can't resolve the UID (https://github.com/openziti/zrok/issues/454)

View File

@ -0,0 +1,6 @@
-- +migrate Up
create index environments_account_id_idx on environments (account_id);
create index shares_token_perf_idx on shares (token);
create index shares_environment_id_idx on shares (environment_id);
create index frontends_environment_id_idx on frontends (environment_id);

View File

@ -0,0 +1,6 @@
-- +migrate Up
create index environments_account_id_idx on environments (account_id);
create index shares_token_perf_idx on shares (token);
create index shares_environment_id_idx on shares (environment_id);
create index frontends_environment_id_idx on frontends (environment_id);