Author: bugzilla_wikipedia_org.to.jamesd
Description:
Queries like this are quite common:
wikiuser dewiki 158 SELECT COUNT(*) AS n FROM cur
WHERE cur_timestamp>'20040902235857'
MySQL has a query cache which will return the result
very quickly if the query string is an exact match
(including case) of a query in the cache. At present
these queries require a count to the nearest second,
making the cache almost useless for them. Replacing
the last three or four digits with 0 would allow the
query cache to cache many of them. Even two digits
would help en on Wikipedia. Suggest rounding in this
way for any query where an approximate value is good
enough.
I think that the example above is from a watchlist.
Version: unspecified
Severity: normal