Skip to content

Entity loaders lazy initialization #400

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
Closed

Entity loaders lazy initialization #400

wants to merge 1 commit into from

Conversation

git-heavy
Copy link

Using NH in our own project we found out that Batching Entity Loaders need a lot of time to initalize. It was critical for us, so we decided to make this process a bit lazy.

@DmitryNaumov
Copy link
Contributor

DmitryNaumov commented Feb 27, 2015

What if just replace Loader[] with Lazy<Loader>[]? Wouldn't it be simpler change? BTW I wonder why creating Loader takes lot of time...

@hazzik
Copy link
Member

hazzik commented Nov 14, 2018

I've checked and it seems the solution with Lazy<> works best.

@hazzik
Copy link
Member

hazzik commented Nov 14, 2018

Replaced by #1904

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.

3 participants