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

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme