Skip to content

Complete GraphQL::Schema::Visibility::Profile#preload - #5743

Merged
rmosolgo merged 1 commit into
rmosolgo:masterfrom
Shopify:pz-schema-visibility-profile-preload
Sep 21, 2026
Merged

rmosolgo merged 1 commit into
rmosolgo:masterfrom
Shopify:pz-schema-visibility-profile-preload

Conversation

@peterzhu2118

Copy link
Copy Markdown
Contributor

Right now, we cannot freeze a GraphQL::Schema::Visibility::Profile object even after preloading because preloading is not complete. We would like to use preload + freeze in production because it will help us save memory by right-sizing hashes and allow the default_proc to be garbage collected.

Right now, we cannot freeze a GraphQL::Schema::Visibility::Profile object
even after preloading because preloading is not complete. We would like
to use preload + freeze in production because it will help us save memory
by right-sizing hashes and allow the default_proc to be garbage collected.
@rmosolgo

Copy link
Copy Markdown
Owner

Hey, thanks -- this is great. I totally forgot about this old TODO!

I'm not sure what to make about these test failures. I don't recognize them, so I think they're legit, but I don't have a guess how they're related to this change 🤔

@peterzhu2118

peterzhu2118 commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor Author

The tests are failing in the same way on master commit 4840991

@rmosolgo

Copy link
Copy Markdown
Owner

Got it -- they were introduced in #5742. I'll take care of them separately. Thanks again!

@rmosolgo
rmosolgo merged commit 30f4731 into rmosolgo:master Sep 21, 2026
12 of 15 checks passed
@rmosolgo rmosolgo added this to the 2.6.11 milestone Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants