Skip to content

Fix closure type instance caching problem (issue #224) #255

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 12 commits into from
Jun 30, 2022

Conversation

alex-kulakov
Copy link
Contributor

@alex-kulakov alex-kulakov commented Jun 22, 2022

Fixes capture of closure type instance declared in #224, reverts previous changes made in #225

- AllocateParameterAndReplacer method returns back its responsibility declared in name
- Checking for ability to cache query is moved to method that caches query
- No two calls for queryTarget.GetType(), it is cached when AllocateParameterAndReplacer
method is called, since the method called only when caching is needed we can use cached
type later on in IsQueryCacheable method
- all structs allowed in closure type
+ minor changes of test enitites
@alex-kulakov
Copy link
Contributor Author

@SergeiPavlov , since you're the person who created this check, please take a look.

SergeiPavlov
SergeiPavlov previously approved these changes Jun 24, 2022
As I see local collections trigger ItemToTupleConverter to be built and
closure type instance can be captured within ParameterizedQuery.
Also revert previous changes of conditional caching
@alex-kulakov alex-kulakov changed the title Execute/CreateDelayedQuery closure caching changes Fix closure type instance caching problem (issue #224) Jun 30, 2022
@alex-kulakov alex-kulakov merged commit e5cd287 into master Jun 30, 2022
@alex-kulakov alex-kulakov deleted the master-query-caching-condition-fix branch June 30, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants