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

Criteria to add a readThrough Cache for <Class, memberPath>to avoid class scanning on every query #1241

Closed
kriarani opened this issue Nov 19, 2020 · 2 comments

Comments

@kriarani
Copy link

Add a readThrough cache that stores class#memberPath to Member so that subsequent lookup can avoid costly reflective class scanning.

CriteriaContext.appendPath called from Templace look at this cache.
This will boost > 1ms for every query.

@kriarani kriarani changed the title Criteria to readThrough Cache for <Class, memberPath>to avoid class scanning on every query Criteria to add a readThrough Cache for <Class, memberPath>to avoid class scanning on every query Nov 19, 2020
@kriarani
Copy link
Author

kriarani commented Nov 23, 2020

Thanks Andrei Sereda for fixing it. when are are targetting 2.8.9 ?

@asereda-gs
Copy link
Member

Yes. It should be in the next release

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

No branches or pull requests

2 participants