Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5128 from hashicorp/tmessi-cherry-pick-cache-speedup
Cache speed up and additional performance improvements This includes several changes to improve the performance of the client cache, including: * Making the sqlite database for the cache persistent, so the cache does not need to be rebuilt each time the boundary client is started. * Limiting the number of results retrieved when listing resources to 250. * Preventing redundant refreshes running at the same time for a given client. * Adding indexes to the cache database. It also refactors the grants query that is run to fetch grants for a user when processing a controller API request. This greatly reduces the amount of data that is returned from the database, but required a number of changes in the application logic to account for different kinds of grant scopes. Lastly this makes some performance improvements in the controller database. It adds several indexes to help with the grants query and with delete cascades for several resources. And it changes the delete trigger for sessions to run per statement instead of per row to help with bulk deleting of sessions.
- Loading branch information