You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use-case that I believe is not all that uncommon: I frequently find myself looking for entities in my database matching some particular filters, which may or may not be there.
Most of the time actually, there are no matching records for that particular set of filters in my database.
I would like Doctrine to cache this output so that I do not end up hitting the database each time.
I do not yet have a technical proposal for this, however I imagine it is feasible to implement and would like take a stab at it.
This issue is raised for tracking purposes as well as to get a feel of whether maintainers are interested in this feature.
The text was updated successfully, but these errors were encountered:
Feature Request
Summary
Currently, as can be seen in https://github.com/doctrine/orm/blob/3.2.x/src/Cache/Persister/Entity/AbstractEntityPersister.php#L315-L319, null return values are not cached.
I have a use-case that I believe is not all that uncommon: I frequently find myself looking for entities in my database matching some particular filters, which may or may not be there.
Most of the time actually, there are no matching records for that particular set of filters in my database.
I would like Doctrine to cache this output so that I do not end up hitting the database each time.
I do not yet have a technical proposal for this, however I imagine it is feasible to implement and would like take a stab at it.
This issue is raised for tracking purposes as well as to get a feel of whether maintainers are interested in this feature.
The text was updated successfully, but these errors were encountered: