Is it possible to get the size of the result-set when doing a query?
I need to set a proper MySQL cache_limit (MB) and therefore I am trying out some queries, but I need to know the sizes of the result-sets to fine-tune my cache configurations.
What exactly does query_cache_limit do when measuring the size of a query (or result)…
As a rouph estimate you coud try
or
echo strlen(serialize(mysql_fetch_assoc($result)));