I am storing the response to various rpc calls in a mysql table with the following fields:
Table: rpc_responses timestamp (date) method (varchar) id
i used this,worked for me
select max(timestamp),method,id from tables where 1 group by method,id order by timestamp desc