Skip to content

Lazy initialize BatchingEntityLoader and BatchingCollectionInitializer #1904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

hazzik
Copy link
Member

@hazzik hazzik commented Nov 14, 2018

Replaces #400

Copy link
Member

@fredericDelaporte fredericDelaporte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure this is a good move. It will be harder to warm-up an application with this change, since initializing all the loaders actually used by the application will require to have executed all code paths using different loaders. And introducing an option for choosing having them lazy or not would be a bit overkill.

@hazzik
Copy link
Member Author

hazzik commented Nov 18, 2018

Agree. Better to optimize the code in batchers instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants