Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
http://blog.lavoie.sl/2014/12/preventing-cache-stampede-using-doctrine-cache.html
Be sure the problem is the backend
Even if you use legacy mysql API, you can benefit from Doctrine.
Doctrine Cache Detector
Automatically select the best available cache
https://github.com/lavoiesl/doctrine-cache-detector
Consistent API for a variety of cache backends
Doctrine Cache Provider
Allows to use the database as a key/value store
https://github.com/lavoiesl/doctrine-cache-provider
Redis
Very fast shared key/store
http://redis.io/
Sébastien Lavoie
WeMakeCustom
@lavoiesl
Comments: http://joind.in/12997
Slides: http://prezi.com/zoeyctbskei5/
Don’t just go in blindly with micro optimizations
Joins are very costly, do not join if you don’t need.
Add your join tables and the WHEREs at the same time.
Very often, some information is not directly related to your query and should already be known to your application.
Gather precise data about which function uses the most time/cpu/memory
Use around 100ms so get the most data
Indices are expensive to manage,
do not throw an index on everything, but:
See this PHPQuebec talk from Jehad Keriaki:
https://joind.in/11328