-
Notifications
You must be signed in to change notification settings - Fork 936
Query cache always missed in session having altered the entities #1731
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
Query cache always missed in session having altered the entities #1731
Conversation
72b71be
to
857c1db
Compare
@fredericDelaporte 5.1.3 or 5.2? |
Also, I think that async tests are missing. |
Ah, yes, I'll add async tests. Comments on the possibility of backporting to 4.1? |
4.1 unlikely. What’s holding you from updating to 5.x? |
Stuck on net452 for a while. |
@fredericDelaporte odd semi-unrelated question (but I was thinking about it for a while): .net 4.5 support in 5.2, yeah/nah? I did initial analysis: the only thing is missing is
A rationale for that: to get a better user acquisition on a newer version. |
857c1db
to
fd0220a
Compare
Async test added. |
Hum, have you missed a |
It seems it's manual addition |
I am in favor of adding it. The main drawback will be the increase in the NuGet size. And should we start providing multiple targets in the SourceForge package? (Or on the contrary, drop SourceForge publishing?) |
No, I added it as a new test method in Ah, I just re-read the contributing guidelines and I see the part about using the async code generator. I'll redo the async part using the generator. |
fd0220a
to
a914425
Compare
Now I have. |
{ | ||
protected override void Configure(Configuration configuration) | ||
{ | ||
configuration.SetProperty("show_sql", "true"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Errr, no.
protected override void Configure(Configuration configuration) | ||
{ | ||
configuration.SetProperty("show_sql", "true"); | ||
configuration.SetProperty("generate_statistics", "true"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use a property from Cfg.Environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, done.
a914425
to
d044a5c
Compare
I am more for 5.2. Especially since the opener would need this down to 4.1, which is quite unlikely we will do for a trouble which is not a serious regression. Moreover if we do support Fx4.5 in 5.2, that may suit him as I understand his need for having it in 4.1. |
If you do plan to support net45 in 5.2, I can definitely wait until then. |
Still on the unrelated subject, |
Tried to do .NET 4.5 and found more issues: |
So well, we are back to "where should we put that fix"... I still do not think we should backport it to 4.1. Of course @igitur could rebase this PR on 5.1.x for inclusion in 5.1.3 then he could create backport PRs cherry-picking the change in 5.0.x and 4.1.x, reducing the work on the team side. |
Don't worry about the 4.1 request. I can use this as motivation to upgrade our apps to net461+. Yes, I can rebase on 5.1.x if @hazzik is OK with that. |
Yes, 5.1.3 would be good. So, please rebase. |
d044a5c
to
17a9961
Compare
17a9961
to
683df95
Compare
Rebased on |
Thanks @igitur |
Fixes #1730
This is my first fix to NHibernate. Please let me know what else is required on this PR. Ideally, I'd like this patch to be included on the 4.1 branch. Anything I can do to make that easier?