Skip to content

Optimize CriteriaQueryTranslator GetColumns and GetTypes #1974

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

Merged
merged 4 commits into from
Jan 20, 2019

Conversation

bahusoid
Copy link
Member

@bahusoid bahusoid commented Jan 14, 2019

Avoid catching exceptions for subqueries (fixes #780)
Avoid multiple path parsings and subcriteria lookups
Fixes GetType for multilevel subqueries (fixes #1312)

@bahusoid
Copy link
Member Author

Added explicit tests with benchmarks which show that second point doesn't give any visible perf gain on my machine (but let it stay as it was done simply as part of subquery fix) But it gives visible boost for subqueries with many references from outer query (see SubqueryManyParamsFromOuterQuery). On my machine it's 6s vs 3s for 15000 query generations.

hazzik
hazzik previously approved these changes Jan 14, 2019
@hazzik hazzik added the t: Fix label Jan 15, 2019
@hazzik hazzik added this to the 5.3 milestone Jan 15, 2019
@fredericDelaporte fredericDelaporte merged commit e11ec16 into nhibernate:master Jan 20, 2019
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.

NH-3493 - Cannot use alias between more than 1 level of nested queries NH-1200 - Exception occurs when using criteria exist queries
3 participants