users table to cached_users to improve performance (#4170)

* users table to cached_users to improve performance

* add changes file

Co-authored-by: dayld <>
This commit is contained in:
dayld
2022-02-14 09:48:17 -03:00
committed by GitHub
co-authored by dayld
parent 1e843f3b89
commit c32a225104
2 changed files with 2 additions and 1 deletions
@@ -0,0 +1 @@
* Fix software inventory query for linux hosts to improve performance when getting atom packages.
+1 -1
View File
@@ -430,7 +430,7 @@ SELECT
version AS version,
'Package (Atom)' AS type,
'atom_packages' AS source
FROM users CROSS JOIN atom_packages USING (uid)
FROM cached_users CROSS JOIN atom_packages USING (uid)
UNION
SELECT
name AS name,