Skip to main content

Calculate average of large data

  • March 23, 2016
  • 1 reply
  • 9 views

phmandawa
Forum|alt.badge.img+1

 

HI,

 

I am trying to calculate avg for 10 gb data and show it on graph in browser. Query takes around 16 sec. For smaller chunk of data, it is around 1 sec. Should I divide the table into multiple partitions and run queries in parallel. Or Am I missing something.

 

 

 

1 reply

phmandawa
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • March 28, 2016

HI,

 

Thanks for your reply, It is simple query for calculating moving average. The query time is now less than 1 sec. I took the help of db designer and it asked me to create a new projection.