Suresh Dayma wrote:
you need to optimize your sql queries.
Thanx. I figured that would be the best. Building a custom query to select only every 60th row. Could just not find a good solution to such a query. Current solution that ive got that is working is creating an empty data table and then using a for statement to select a specific row and appending it to the datatable with the row identifier as the for counter multiplied by 60 or whatever the case may be until the spesified date or time is reached. Thus creating a table with the relevant time span but only selected values.(thus painting the chart is much faster due to less values) This works fine just feels cumbersome and sloppy. Well thanks so far.