[HistoryView] Discard unused old data to avoid slow down

When I left the HistoryView running 3 days with enabling auto
refresh, it became slow.