Hi Kuan Yi Wu .
You use the cash manager module?
If the answer is yes!! check the next tables ...
select pernbr as period, * from CashSumD order by PerNbr desc
select pernbr as period, * from CashAvgD order by PerNbr desc
If you have transaction mayor to 2013 maybe this is one reazon of slow performance.