- 
    Incident report 
- 
    Resolution: Fixed
- 
    Critical 
- 
    2.2.4
It appears that the used query:
select clock,ns,value from history_uint where itemid=786846 and clock<=1406552958 order by clock desc,ns desc limit 2;
This works in many times faster:
select clock,ns,value from history_uint where itemid=786846 and clock<=1406552958 order by clock desc limit 2;
Please look the screenshots for details.

