Skip to content
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

Call BeforeAssemble on persistent collections' InitializeFromCache to allow batched cache fetching #3365

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

hazzik
Copy link
Member

@hazzik hazzik commented Jul 17, 2023

Fixes #3359

@hazzik hazzik changed the base branch from master to 5.4.x July 17, 2023 15:47
@bahusoid
Copy link
Member

bahusoid commented Jul 17, 2023

I probably OK with this fix though I think it's not fully correct.
Currently it calls ScheduleBatchLoadIfNeeded(object id, ISessionImplementor session, bool addToQueryCacheBatch)
with addToQueryCacheBatch set to true. But in this context query cache seems irrelevant so it should be false

@hazzik
Copy link
Member Author

hazzik commented Jul 17, 2023

I think it does not really matter. In this case the QueryCacheQueue will likely be null and so the parameter would be, pretty much, ignored.

@fredericDelaporte
Copy link
Member

Though, why 5.4? It does not look like a regression.

@hazzik
Copy link
Member Author

hazzik commented Jul 17, 2023

why 5.4? It does not look like a regression.

Yes, it is not regression, but a really nasty bug that renders collection cache unusable in some cases.

@hazzik hazzik changed the title Call BeforeAssemble on InitializeFromCache to allow batch fetching Call BeforeAssemble on persistent collections' InitializeFromCache to allow batch fetching Jul 17, 2023
@hazzik hazzik changed the title Call BeforeAssemble on persistent collections' InitializeFromCache to allow batch fetching Call BeforeAssemble on persistent collections' InitializeFromCache to allow batch cache fetching Jul 17, 2023
@hazzik hazzik changed the title Call BeforeAssemble on persistent collections' InitializeFromCache to allow batch cache fetching Call BeforeAssemble on persistent collections' InitializeFromCache to allow batched cache fetching Jul 17, 2023
@fredericDelaporte fredericDelaporte added this to the 5.4.4 milestone Jul 18, 2023
@fredericDelaporte
Copy link
Member

fredericDelaporte commented Jul 18, 2023

Ok. (Well, it affects distributed caches, not in-memory caches.)

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.

2nd level cache GetMany ineffective for collections
3 participants