Skip to content

Conversation

@jwu2018
Copy link

@jwu2018 jwu2018 commented Sep 27, 2021

@charlieroberts
Copy link
Contributor

An important topic, and I'm glad that you're tackling it.

Figuring out how you want to store / process the data on the server will be an interesting challenge. On the one hand, it probably makes sense to organize using one document = one client session. On the other hand, that means every time you want to calculate statistic you'd have to load in every document in the databases in order to access the answers from each user/subject.

Given that you'll probably mostly be running basic statistics on the data, you might be able to have mongodb calculate these on the fly for you, perhaps using something like reduce or accumulators(probably better). Otherwise, you could perform the required calculations after each submission and write the JS code to do it in node but I don't think this would scale well in the "real world", as there would be a lot of communication back and forth between the server.

Keep me posted on how you decide to tackle this problem!

@jwu2018 jwu2018 changed the title group14-proposal group14-final-submission Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants