Best practice: profile before adding memcached?

Marcus Bointon marcus at synchromedia.co.uk
Sun Feb 4 21:41:25 UTC 2007


On 4 Feb 2007, at 19:22, Steven Grimm wrote:

> I can't remember one time when I did detailed profiling and wasn't  
> at least a little surprised by the results. If you are having  
> performance problems it's almost always worthwhile.

Though I agree with that (xdebug rules), there's another small  
factor. The way you write code knowing that memcached is going to be  
there can differ from how you might write it otherwise. In  
particular, some SQL query optimisations can work against memcache  
efficiency, and code optimised for memcache availability will often  
look bad in a profiler without it.

Marcus
-- 
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
marcus at synchromedia.co.uk | http://www.synchromedia.co.uk/




More information about the memcached mailing list