fishtank

Archive for February, 2009

[Dev] Alvaro

Profiling symfony with CouchDB

February 20th, 2009 | published by Alvaro

During the last two sprints we run in the need to perform statistic analysis to profile a symfony application. As I explained here symfony logs to the file system quite a lot of useful information regarding the request that is processing. We wanted to be able to easily parse those logs and then perform queries [ Read More → ]

Posted in Development 1 Comment

[Dev] Alvaro

Propel Query Optimization Tips

February 10th, 2009 | published by Alvaro

Below I will like to share some snippets for optimizing Propel queries.
Replace MyTablePeer::retrieveByPk() with a custom query.
If in our code we have something like:
if(MyTablePeer::retrieveByPk($id))
{
//do something here
}
Where we can see that the result from the retrieveByPk() call is used as a boolean, it is better to replace it with a custom query like this:
public [ Read More → ]

Posted in Development 4 Comments

[Dev] Alvaro

IE6 The Best Javascript Debugger Ever. Period!

February 6th, 2009 | published by Alvaro

How you dare to say that? I hear you saying.. Wait wait wait… Put down those torches… I may have a point here.
At the office I spent the last two days hunting a javascript bug on IE6, imagine how painful that can be, with no Firebug to come to rescue.
It happens that we are using [ Read More → ]

Posted in Development 3 Comments