Skip to main content

Calculate average of large data

  • Mar 23, 2016 5:23 AM UTC
  • 1 reply
  • 11 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
  • Mar 28, 2016 5:50 AM UTC

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.