Which is faster for a mysql time calculation: Comparing a timestamp column in a mysql query OR calculating the date in a column with PHP using: $date = '129432835324'; //retrieved from databases $epoch = time(); if($date > $epoch){ //do stuff like delete entries in table } Code (markup):
Seeing as your working with MySQL theirs no reason to be using PHP when MySQL has the functionality built in, based on that - performance wise; i'd assume it would be slightly faster.