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

Introduce lightweight invalid property path resolution cache #2837

Closed
christophstrobl opened this issue Jun 1, 2023 · 0 comments
Closed
Assignees
Labels
type: enhancement A general enhancement

Comments

@christophstrobl
Copy link
Member

The current implementation will only cache valid PropertyPaths that can be resolved to an actual property.
The raised Exception, in case a requested path cannot be resolved to an actual property, outplays the cache.

related to: spring-projects/spring-data-r2dbc#619 & spring-projects/spring-data-mongodb#2862

@christophstrobl christophstrobl added the type: task A general task label Jun 1, 2023
@christophstrobl christophstrobl self-assigned this Jun 1, 2023
@mp911de mp911de changed the title PersistentPropertyPathFactory should cache invalid paths. Introduce lightweight invalid property path resolution cache Jul 12, 2023
mp911de pushed a commit that referenced this issue Jul 12, 2023
Cache failing resolution attempts to avoid reiterating on the same paths over and over again.

Closes #2837
Original pull request: #2838
mp911de added a commit that referenced this issue Jul 12, 2023
Introduce dedicated methods to express object creation intents. Remove unnecessary casts.

See #2837
Original pull request: #2838
@mp911de mp911de closed this as completed Jul 12, 2023
mp911de pushed a commit that referenced this issue Jul 12, 2023
Cache failing resolution attempts to avoid reiterating on the same paths over and over again.

Closes #2837
Original pull request: #2838
mp911de added a commit that referenced this issue Jul 12, 2023
Introduce dedicated methods to express object creation intents. Remove unnecessary casts.

See #2837
Original pull request: #2838
@mp911de mp911de added type: enhancement A general enhancement and removed type: task A general task labels Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants