Skip to content

Conversation

@bahusoid
Copy link
Member

@bahusoid bahusoid commented Aug 5, 2021

SessionFactory IObjectReference.GetRealObject uses only 2 properties name and uuid:

ISessionFactory result = SessionFactoryObjectFactory.GetInstance(uuid);
if (result == null)
{
// if we were deserialized into a different AppDomain, look for an instance with the
// same name.
result = SessionFactoryObjectFactory.GetNamedInstance(name);

So all other properties are serialized/deserialized for nothing (queryPlanCache I believe might be heavy)

@hazzik hazzik added this to the 5.3.10 milestone Aug 9, 2021
@hazzik hazzik enabled auto-merge (squash) August 9, 2021 07:35
@hazzik hazzik merged commit f71fe39 into nhibernate:5.3.x Aug 9, 2021
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