DDC-217: Result cache should cache the SQL result and not the final objects #269

Open
opened 2026-01-22 12:32:56 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Dec 19, 2009).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user romanb:

When fetching objects and using a result cache, it would probably be better to cache the SQL result array instead of the hydrated objects. That way, when grabbing from the cache managed entities can be returned. Also, caching is more efficient since an SQL result array does not need to be serialized/unserialized when storing in apc or memcached.

Originally created by @doctrinebot on GitHub (Dec 19, 2009). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user romanb: When fetching objects and using a result cache, it would probably be better to cache the SQL result array instead of the hydrated objects. That way, when grabbing from the cache managed entities can be returned. Also, caching is more efficient since an SQL result array does not need to be serialized/unserialized when storing in apc or memcached.
admin added the Improvement label 2026-01-22 12:32:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#269