Monday, 24 April 2017

Averaging Big Data Sources Indside MongoDB

I am using a MongoDB database with a Node.js backend. I am asking users to enter their heights, which is then added to the MongoDB. After that, the data inside all of the objects is computed to give an average height of all the users that use the service.

The problem I see with this potentially in the future is the DB getting so large that it slows down performance as more and more users add their heights.

I can't think of other ways to implement this because if I take the height, and then discard it, then when another user enters their height, the average won't be computed correctly.

Has anyone had this issue with DBs getting larger and larger and also trying to do computational analysis on them? And if so, what have you done?

Cheers!



via LJP1203

No comments:

Post a Comment