MySQL资源使用情况

时间:2010-05-26 05:52:04

标签: mysql performance

我正在使用MySQL和PHP。我想测量MySQL在运行特定查询时使用了多少内存和其他资源

1 个答案:

答案 0 :(得分:0)

据我所知,你不能用PHP做到这一点。但是,如果您担心使用查询消耗过多内存,则可以使用mysql_free_result( );

$result = ... first query

mysql_free_result( $result ); // Frees memory

$next_result = ... next query
相关问题