Skip to content

2nd meeting: tasks

jacquesd edited this page Nov 23, 2012 · 4 revisions

Questions Creation And Storage

Creation can be done through a JSON file: questions.json, which is uploaded along the slides. It can also be created with the help of an online editor.

The questions can be stored either in a JSON file or in a collection (preferred)

Markup of the question is defined in a view (ejs file) and css.

Data Structure & Storage

First Suggestion

Slides are uploaded as above. (As an archive if the upload of a directory is not possible.) the questions.json file is parsed and integrated in a collection, the rest of the uploaded data remains as is, in the folder.

The remaining data will be stored in a multiples collections (MangoDB). See chart below: Data Structure 1

Second Suggestion

Slides are uploaded the same as above except for the questions.json file which is not parsed into a collection but left as is and loaded into memory if the slides are needed.

This case only uses two collections, the users and the slides:
Data Structure 2

This can also be found on the suggestion page.

Pros And Cons

First Suggestion Second Suggestion
Pros Cons
Modular More complex
Scale more easily Larger number of collections
Separation of information Redundancy and increased overhead
Organised, easy to maintain
Pros Cons
Simple Rigidity
Less collections Immobility
No needless repetition More difficult to share information
Faster to implement at first Must load questions from JSON into memory

Clone this wiki locally