Some queries are not logged in class.mysql
Closed ticket reported by nickdunn on 05 January 2010
# 197Closed Ticket: Some queries are not logged in class.mysql
Sussed! Line 263 of class.mysql.php builds a unique hash for the query by hashing the current time. If two of the same query are fired one after the other, within a fraction of a second, this hash will be identical so only one will be logged.
Fixed by using microtime() instead:
$query_hash = md5($query.microtime());
Pulled. Thanks
This issue is closed.
Some queries are missing from the internal logger in class.mysql.php. The total is often higher than the number of queries printed out using
->debug('queries').