Speed up x2 chart data via reduced count of SQL queries