This change was done to prevent hash collisions by implementing a Separate
Chaining algorithm:
http://en.wikipedia.org/wiki/Hash_table#Separate_chaining

You can aviod this by setting your own result key when calling
$query->setResultCacheId($id) or $query->useResultCache(true, 3600,
'my_custom_id'); In this case the result cache id is used as a separate
chaining key also, which significantly minimizes the cache key lengths.


On Thu, 27 Jan 2011 03:37:51 -0800 (PST), Venzon <[email protected]> wrote:
> I am using APC with Doctrine and I noticed that after last changes
> label of cached query in APC changed so now doctrine is using entire
> query sql string for label in apc cache. Before changes every sql
> query was labeled in apc cache with some kind of checksum string (a
> lot shorter then using entire sql string).
> 
> Is this on purpose or some bug happened? If this change was planned
> then what is better in current solution then in previous one? Tbh I
> liked how it worked before changes, now sometimes label of query will
> take more space in apc cache then results...

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to