-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
4.8.0
-
None
-
None
-
Future Sustainability
-
False
-
-
False
-
-
-
Rox Sprint 4.8G - Global
-
0
We should not use GetAll and prefer Walk instead as it's less memory heavy.
https://github.com/stackrox/stackrox/blob/db6ac9a79deea1b83e4ccb220df4aad1c83b36e0/pkg/search/postgres/store.go#L211
Eventually we should not have `--get-all-func` in central and remove it from pg store generator.
central/auth/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.AuthMachineToMachineConfig --references=storage.Role --get-all-func central/authprovider/datastore/internal/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.AuthProvider --search-category AUTH_PROVIDERS --get-all-func central/cloudsources/datastore/internal/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.CloudSource --search-category CLOUD_SOURCES --cached-store --get-all-func central/externalbackups/internal/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.ExternalBackup --get-all-func central/group/datastore/internal/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.Group --table=groups --get-all-func central/imageintegration/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.ImageIntegration --search-category IMAGE_INTEGRATIONS --get-all-func --cached-store central/logimbue/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.LogImbue --get-all-func central/notifier/datastore/internal/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.Notifier --get-all-func central/policy/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.Policy --search-category POLICIES --get-all-func central/policycategory/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.PolicyCategory --search-category POLICY_CATEGORIES --get-all-func central/policycategoryedge/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --get-all-func --type=storage.PolicyCategoryEdge --table=policy_category_edges --search-category POLICY_CATEGORY_EDGE --references=policies:storage.Policy,policy_categories:storage.PolicyCategory --search-scope POLICY_CATEGORY_EDGE,POLICY_CATEGORIES central/serviceidentities/internal/store/postgres/gen.go://go:generate pg-table-bindings-wrapper --type=storage.ServiceIdentity --get-all-func