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

Cache null/empty returns for findOneBy #11584

Open
wants to merge 3 commits into
base: 3.3.x
Choose a base branch
from

Commits on Aug 23, 2024

  1. Cache null/empty returns for findOneBy

    On 'findOneBy' calls which return no an empty result set from the
    persister, null values are not cached.
    This makes it so that repeat calls of 'findOneBy' with the same
    criteria, always hit the database.
    
    The changes introduced in this commit make the AbstractEntityPersister
    cache the empty result set in the region, so that repeat calls do not
    hit the database again.
    
    The existing mechanism to invalidate the query cache is sufficient; any
    persist/update performed to the region will invalidate it, exactly how
    it happens for non-empty result sets.
    
    This is also more in-line with the way 'loadByCriteria' and 'loadAll'
    behave.
    dciprian-petrisor committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    154989d View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Configuration menu
    Copy the full SHA
    9bcd8c7 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. fix: code style

    dciprian-petrisor committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    9eada5c View commit details
    Browse the repository at this point in the history