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
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
add a comment |
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
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
add a comment |
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
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
database firebase nosql
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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 :)
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 :)
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
add a comment |
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 :)
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
add a comment |
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 :)
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 :)
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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