Follow-up from "Add new GraphQL query getAddOnPurchases"
The following discussion from !160515 (merged) should be addressed:
-
@bhrai started a discussion: (+2 comments) suggestion (non-blocking): To avoid
N + 1
, we can addincludes
foradd_on
andadd_on_assignments
, which gets called inAddOnPurchaseType
. Since, it's a graphql we could look into adding preloads ?Also, the authroization will get called for each record too, IIUC. May be we could see a way to preload it too? This may only be needed for
gitlab_com_subscription
andnamespace
. Existing example.