What improvements I can make on student attendance NoSQL database?What is NoSQL, how does it work, and what benefits does it provide?What scalability problems have you encountered using a NoSQL data store?First-time database design: am I overengineering?NoSQL (MongoDB) vs Lucene (or Solr) as your databaseWhat are the options for storing hierarchical data in a relational database?NoSql vs Relational databaseAttendance Database with Excessive Absence AlertWhat datastore to use for user designed forms - Any advantages with NoSQL for EAVWhat would be good table design for recording attendance of studentsDesigning an attendance system using QR code with Firebase

Review your own paper in Mathematics

Sound waves in different octaves

How to make money from a browser who sees 5 seconds into the future of any web page?

Can you identify this lizard-like creature I observed in the UK?

Can I say "fingers" when referring to toes?

Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?

Origin of pigs as a species

Showing mass murder in a kid's book

Animation: customize bounce interpolation

Should I warn a new PhD Student?

Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?

Language involving irrational number is not a CFL

What is the meaning of "You've never met a graph you didn't like?"

Difference between shutdown options

The Digit Triangles

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

Alignment of six matrices

Determining multivariate least squares with constraint

How to make a list of partial sums using forEach

Unable to disable Microsoft Store in domain environment

How to test the sharpness of a knife?

Do I have to know the General Relativity theory to understand the concept of inertial frame?

How to write Quadratic equation with negative coefficient

Should I assume I have passed probation?



What improvements I can make on student attendance NoSQL database?


What is NoSQL, how does it work, and what benefits does it provide?What scalability problems have you encountered using a NoSQL data store?First-time database design: am I overengineering?NoSQL (MongoDB) vs Lucene (or Solr) as your databaseWhat are the options for storing hierarchical data in a relational database?NoSql vs Relational databaseAttendance Database with Excessive Absence AlertWhat datastore to use for user designed forms - Any advantages with NoSQL for EAVWhat would be good table design for recording attendance of studentsDesigning an attendance system using QR code with Firebase













0















I’m designing a NoSQL database for student attendance system, I want your advices to improve it since I’m new to this field.



I want to query 1. classes for specific student, 2. students on specific class, 3. Attendees for specific class on specific date, 4. attendance and absence count for specific student on specific class.




"attendance" :
"CS 331" :
"7-3-2019" :
"2014901001" : true


,
"class" :
"class01" :
"id" : "CS 331",
"name" : "Software Design",
"students" :
"2014901001" : true


,
"classEnrollment" :
"CS 331" :
"2014901001" :
"absence" : 0,
"attendant" : 1


,
"instructor" :
"instructor01" :
"id" : "01"

,
"instructorEnrollment" :
"01" :
"CS 331" : true

,
"student" :
"student01" :
"id" : "2014901001",
"name" : "Paul Howard"

,
"studentEnrollment" :
"2014901001" :
"CS 331" : true












share|improve this question






















  • It seems that your data model will fulfill your needs! As you have done, you should not hesitate to duplicate data in NoSQL world. You may use a transaction to update the counters.

    – Renaud Tarnec
    Mar 8 at 8:49











  • This is very tough to answer; when you say improve it, in what way do you want it improved? Is it not working for your use case? Can you describe the issue you're having with it? Please take a moment and review How do I ask a good question? and How to create a Minimal, Complete, and Verifiable example. I would encourage you to provide some more details so we understand the scope of the question. Update the question and we'll take a look!

    – Jay
    Mar 8 at 16:00















0















I’m designing a NoSQL database for student attendance system, I want your advices to improve it since I’m new to this field.



I want to query 1. classes for specific student, 2. students on specific class, 3. Attendees for specific class on specific date, 4. attendance and absence count for specific student on specific class.




"attendance" :
"CS 331" :
"7-3-2019" :
"2014901001" : true


,
"class" :
"class01" :
"id" : "CS 331",
"name" : "Software Design",
"students" :
"2014901001" : true


,
"classEnrollment" :
"CS 331" :
"2014901001" :
"absence" : 0,
"attendant" : 1


,
"instructor" :
"instructor01" :
"id" : "01"

,
"instructorEnrollment" :
"01" :
"CS 331" : true

,
"student" :
"student01" :
"id" : "2014901001",
"name" : "Paul Howard"

,
"studentEnrollment" :
"2014901001" :
"CS 331" : true












share|improve this question






















  • It seems that your data model will fulfill your needs! As you have done, you should not hesitate to duplicate data in NoSQL world. You may use a transaction to update the counters.

    – Renaud Tarnec
    Mar 8 at 8:49











  • This is very tough to answer; when you say improve it, in what way do you want it improved? Is it not working for your use case? Can you describe the issue you're having with it? Please take a moment and review How do I ask a good question? and How to create a Minimal, Complete, and Verifiable example. I would encourage you to provide some more details so we understand the scope of the question. Update the question and we'll take a look!

    – Jay
    Mar 8 at 16:00













0












0








0








I’m designing a NoSQL database for student attendance system, I want your advices to improve it since I’m new to this field.



I want to query 1. classes for specific student, 2. students on specific class, 3. Attendees for specific class on specific date, 4. attendance and absence count for specific student on specific class.




"attendance" :
"CS 331" :
"7-3-2019" :
"2014901001" : true


,
"class" :
"class01" :
"id" : "CS 331",
"name" : "Software Design",
"students" :
"2014901001" : true


,
"classEnrollment" :
"CS 331" :
"2014901001" :
"absence" : 0,
"attendant" : 1


,
"instructor" :
"instructor01" :
"id" : "01"

,
"instructorEnrollment" :
"01" :
"CS 331" : true

,
"student" :
"student01" :
"id" : "2014901001",
"name" : "Paul Howard"

,
"studentEnrollment" :
"2014901001" :
"CS 331" : true












share|improve this question














I’m designing a NoSQL database for student attendance system, I want your advices to improve it since I’m new to this field.



I want to query 1. classes for specific student, 2. students on specific class, 3. Attendees for specific class on specific date, 4. attendance and absence count for specific student on specific class.




"attendance" :
"CS 331" :
"7-3-2019" :
"2014901001" : true


,
"class" :
"class01" :
"id" : "CS 331",
"name" : "Software Design",
"students" :
"2014901001" : true


,
"classEnrollment" :
"CS 331" :
"2014901001" :
"absence" : 0,
"attendant" : 1


,
"instructor" :
"instructor01" :
"id" : "01"

,
"instructorEnrollment" :
"01" :
"CS 331" : true

,
"student" :
"student01" :
"id" : "2014901001",
"name" : "Paul Howard"

,
"studentEnrollment" :
"2014901001" :
"CS 331" : true









database firebase nosql






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 7 at 21:59









Fawzi Rifa'iFawzi Rifa'i

12




12












  • It seems that your data model will fulfill your needs! As you have done, you should not hesitate to duplicate data in NoSQL world. You may use a transaction to update the counters.

    – Renaud Tarnec
    Mar 8 at 8:49











  • This is very tough to answer; when you say improve it, in what way do you want it improved? Is it not working for your use case? Can you describe the issue you're having with it? Please take a moment and review How do I ask a good question? and How to create a Minimal, Complete, and Verifiable example. I would encourage you to provide some more details so we understand the scope of the question. Update the question and we'll take a look!

    – Jay
    Mar 8 at 16:00

















  • It seems that your data model will fulfill your needs! As you have done, you should not hesitate to duplicate data in NoSQL world. You may use a transaction to update the counters.

    – Renaud Tarnec
    Mar 8 at 8:49











  • This is very tough to answer; when you say improve it, in what way do you want it improved? Is it not working for your use case? Can you describe the issue you're having with it? Please take a moment and review How do I ask a good question? and How to create a Minimal, Complete, and Verifiable example. I would encourage you to provide some more details so we understand the scope of the question. Update the question and we'll take a look!

    – Jay
    Mar 8 at 16:00
















It seems that your data model will fulfill your needs! As you have done, you should not hesitate to duplicate data in NoSQL world. You may use a transaction to update the counters.

– Renaud Tarnec
Mar 8 at 8:49





It seems that your data model will fulfill your needs! As you have done, you should not hesitate to duplicate data in NoSQL world. You may use a transaction to update the counters.

– Renaud Tarnec
Mar 8 at 8:49













This is very tough to answer; when you say improve it, in what way do you want it improved? Is it not working for your use case? Can you describe the issue you're having with it? Please take a moment and review How do I ask a good question? and How to create a Minimal, Complete, and Verifiable example. I would encourage you to provide some more details so we understand the scope of the question. Update the question and we'll take a look!

– Jay
Mar 8 at 16:00





This is very tough to answer; when you say improve it, in what way do you want it improved? Is it not working for your use case? Can you describe the issue you're having with it? Please take a moment and review How do I ask a good question? and How to create a Minimal, Complete, and Verifiable example. I would encourage you to provide some more details so we understand the scope of the question. Update the question and we'll take a look!

– Jay
Mar 8 at 16:00












1 Answer
1






active

oldest

votes


















0














This what i will design for such a user requirement




"class_collection":
"documents": [

"id": "CS_331_2019_1",
"type": "CS 331",
"name": "Software Design",
"enrolled_instructor": [
"instructor_id_1"
],
"enrolled_students": [

"id": "student_id_1",
"absence": 0,
"attendant": 2
,

"id": "student_id_2",
"absence": 2,
"attendant": 3

]

]
,
"class_attendance_collection":
"documents": [

"2019-03-12T18:00:00":
"class_id": "CS_331_2019_1",
"attended": ["student_id_1"],
"not_attended": ["student_id_2"]

,

"2019-03-13T16:00:00":
"class_id": "CS_331_2019_1",
"attended": ["student_id_1","student_id_2"]


]
,
"student_collection":
"documents": [

"id": "student_id_1",
"name": "name_1"
,

"id": "student_id_2",
"name": "name_2"

]
,
"instructor_collection":
"documents": [

"id": "instructor_id_1",
"name": "name_1"
,

"id": "instructor_id_2",
"name": "name_2"

]




Have fun coding :)






share|improve this answer























  • Great, but how I can retrieve classes which a specific student has enrolled in?

    – Fawzi Rifa'i
    2 days ago











  • in mongoDB it will be something like this db.class.find("enrolled_students.id":"student_id_1" find out more docs.mongodb.com/manual/tutorial/query-embedded-documents in the no-sql world nested objects are called embedded

    – Ali Alp
    2 days ago












  • for firebase you should look at firebase.google.com/docs/database/rest/retrieve-data got to "Filtering by a specified child key" section

    – Ali Alp
    2 days ago










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55053471%2fwhat-improvements-i-can-make-on-student-attendance-nosql-database%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














This what i will design for such a user requirement




"class_collection":
"documents": [

"id": "CS_331_2019_1",
"type": "CS 331",
"name": "Software Design",
"enrolled_instructor": [
"instructor_id_1"
],
"enrolled_students": [

"id": "student_id_1",
"absence": 0,
"attendant": 2
,

"id": "student_id_2",
"absence": 2,
"attendant": 3

]

]
,
"class_attendance_collection":
"documents": [

"2019-03-12T18:00:00":
"class_id": "CS_331_2019_1",
"attended": ["student_id_1"],
"not_attended": ["student_id_2"]

,

"2019-03-13T16:00:00":
"class_id": "CS_331_2019_1",
"attended": ["student_id_1","student_id_2"]


]
,
"student_collection":
"documents": [

"id": "student_id_1",
"name": "name_1"
,

"id": "student_id_2",
"name": "name_2"

]
,
"instructor_collection":
"documents": [

"id": "instructor_id_1",
"name": "name_1"
,

"id": "instructor_id_2",
"name": "name_2"

]




Have fun coding :)






share|improve this answer























  • Great, but how I can retrieve classes which a specific student has enrolled in?

    – Fawzi Rifa'i
    2 days ago











  • in mongoDB it will be something like this db.class.find("enrolled_students.id":"student_id_1" find out more docs.mongodb.com/manual/tutorial/query-embedded-documents in the no-sql world nested objects are called embedded

    – Ali Alp
    2 days ago












  • for firebase you should look at firebase.google.com/docs/database/rest/retrieve-data got to "Filtering by a specified child key" section

    – Ali Alp
    2 days ago















0














This what i will design for such a user requirement




"class_collection":
"documents": [

"id": "CS_331_2019_1",
"type": "CS 331",
"name": "Software Design",
"enrolled_instructor": [
"instructor_id_1"
],
"enrolled_students": [

"id": "student_id_1",
"absence": 0,
"attendant": 2
,

"id": "student_id_2",
"absence": 2,
"attendant": 3

]

]
,
"class_attendance_collection":
"documents": [

"2019-03-12T18:00:00":
"class_id": "CS_331_2019_1",
"attended": ["student_id_1"],
"not_attended": ["student_id_2"]

,

"2019-03-13T16:00:00":
"class_id": "CS_331_2019_1",
"attended": ["student_id_1","student_id_2"]


]
,
"student_collection":
"documents": [

"id": "student_id_1",
"name": "name_1"
,

"id": "student_id_2",
"name": "name_2"

]
,
"instructor_collection":
"documents": [

"id": "instructor_id_1",
"name": "name_1"
,

"id": "instructor_id_2",
"name": "name_2"

]




Have fun coding :)






share|improve this answer























  • Great, but how I can retrieve classes which a specific student has enrolled in?

    – Fawzi Rifa'i
    2 days ago











  • in mongoDB it will be something like this db.class.find("enrolled_students.id":"student_id_1" find out more docs.mongodb.com/manual/tutorial/query-embedded-documents in the no-sql world nested objects are called embedded

    – Ali Alp
    2 days ago












  • for firebase you should look at firebase.google.com/docs/database/rest/retrieve-data got to "Filtering by a specified child key" section

    – Ali Alp
    2 days ago













0












0








0







This what i will design for such a user requirement




"class_collection":
"documents": [

"id": "CS_331_2019_1",
"type": "CS 331",
"name": "Software Design",
"enrolled_instructor": [
"instructor_id_1"
],
"enrolled_students": [

"id": "student_id_1",
"absence": 0,
"attendant": 2
,

"id": "student_id_2",
"absence": 2,
"attendant": 3

]

]
,
"class_attendance_collection":
"documents": [

"2019-03-12T18:00:00":
"class_id": "CS_331_2019_1",
"attended": ["student_id_1"],
"not_attended": ["student_id_2"]

,

"2019-03-13T16:00:00":
"class_id": "CS_331_2019_1",
"attended": ["student_id_1","student_id_2"]


]
,
"student_collection":
"documents": [

"id": "student_id_1",
"name": "name_1"
,

"id": "student_id_2",
"name": "name_2"

]
,
"instructor_collection":
"documents": [

"id": "instructor_id_1",
"name": "name_1"
,

"id": "instructor_id_2",
"name": "name_2"

]




Have fun coding :)






share|improve this answer













This what i will design for such a user requirement




"class_collection":
"documents": [

"id": "CS_331_2019_1",
"type": "CS 331",
"name": "Software Design",
"enrolled_instructor": [
"instructor_id_1"
],
"enrolled_students": [

"id": "student_id_1",
"absence": 0,
"attendant": 2
,

"id": "student_id_2",
"absence": 2,
"attendant": 3

]

]
,
"class_attendance_collection":
"documents": [

"2019-03-12T18:00:00":
"class_id": "CS_331_2019_1",
"attended": ["student_id_1"],
"not_attended": ["student_id_2"]

,

"2019-03-13T16:00:00":
"class_id": "CS_331_2019_1",
"attended": ["student_id_1","student_id_2"]


]
,
"student_collection":
"documents": [

"id": "student_id_1",
"name": "name_1"
,

"id": "student_id_2",
"name": "name_2"

]
,
"instructor_collection":
"documents": [

"id": "instructor_id_1",
"name": "name_1"
,

"id": "instructor_id_2",
"name": "name_2"

]




Have fun coding :)







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 12 at 13:11









Ali AlpAli Alp

445




445












  • Great, but how I can retrieve classes which a specific student has enrolled in?

    – Fawzi Rifa'i
    2 days ago











  • in mongoDB it will be something like this db.class.find("enrolled_students.id":"student_id_1" find out more docs.mongodb.com/manual/tutorial/query-embedded-documents in the no-sql world nested objects are called embedded

    – Ali Alp
    2 days ago












  • for firebase you should look at firebase.google.com/docs/database/rest/retrieve-data got to "Filtering by a specified child key" section

    – Ali Alp
    2 days ago

















  • Great, but how I can retrieve classes which a specific student has enrolled in?

    – Fawzi Rifa'i
    2 days ago











  • in mongoDB it will be something like this db.class.find("enrolled_students.id":"student_id_1" find out more docs.mongodb.com/manual/tutorial/query-embedded-documents in the no-sql world nested objects are called embedded

    – Ali Alp
    2 days ago












  • for firebase you should look at firebase.google.com/docs/database/rest/retrieve-data got to "Filtering by a specified child key" section

    – Ali Alp
    2 days ago
















Great, but how I can retrieve classes which a specific student has enrolled in?

– Fawzi Rifa'i
2 days ago





Great, but how I can retrieve classes which a specific student has enrolled in?

– Fawzi Rifa'i
2 days ago













in mongoDB it will be something like this db.class.find("enrolled_students.id":"student_id_1" find out more docs.mongodb.com/manual/tutorial/query-embedded-documents in the no-sql world nested objects are called embedded

– Ali Alp
2 days ago






in mongoDB it will be something like this db.class.find("enrolled_students.id":"student_id_1" find out more docs.mongodb.com/manual/tutorial/query-embedded-documents in the no-sql world nested objects are called embedded

– Ali Alp
2 days ago














for firebase you should look at firebase.google.com/docs/database/rest/retrieve-data got to "Filtering by a specified child key" section

– Ali Alp
2 days ago





for firebase you should look at firebase.google.com/docs/database/rest/retrieve-data got to "Filtering by a specified child key" section

– Ali Alp
2 days ago



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55053471%2fwhat-improvements-i-can-make-on-student-attendance-nosql-database%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Posting a File and Associated Data to a RESTful WebService preferably as JSON2019 Community Moderator ElectionREST URI convention - Singular or plural name of resource while creating itUploading both data and files in one form using Ajax?How do I upload a file with metadata using a REST web service?REST API - file (ie images) processing - best practicesSpring: JSON data and file in the same requestREST API Put large dataPosting a file and JSON data to Spring rest serviceRESTful Web Service Upload/Download Large Data With JSONREST API Design sending JSON data and a file to the api in same requestPost JSONArray to REST servicePUT vs. POST in RESTParsing values from a JSON file?JavaScript/jQuery to download file via POST with JSON dataHow do I upload a file with metadata using a REST web service?How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST?Separate REST JSON API server and client?what's the correct way to send a file from REST web service to client?How do I write JSON data to a file?What is “406-Not Acceptable Response” in HTTP?REST API - file (ie images) processing - best practices

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page