Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

group14-final-submission #9

Open
wants to merge 92 commits into
base: main
Choose a base branch
from
Open

group14-final-submission #9

wants to merge 92 commits into from

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