Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: workaround cve_cache issue with inventory groups
When there are 2 users with different inventory groups in the same account, they can be invalidating cache for each other which will cause that api is slow for both of them. Cache only access to all inventory hosts. When a user doesn't have any inventory groups, then the query will be used without cache. Stats from DB: count of accounts | inventory groups 31581 | [] // access to all hosts 1 | [[]] // access to ungrouped hosts only 6 | access to only 1 inventory group 1 | access to 1 group and to ungrouped hosts 1 | access to multiple groups and ungrouped hosts RHINENG-12465
- Loading branch information