Speed up Symfony Queries using Result Sets
August 6th, 2009
No comments
Hydration is the process used by the Symfony ORM to populate objects with the results of a database query. By making a call to the ::doSelect() method on a peer class Symfony automatically hydrates the resulting objects. In Symfony 1.0 the hydration process was slow and it is much faster in Symfony 1.2. Still, in some cases you may want to bypass hydration. Consider a simple example. Suppose we want to get the title of some news articles.