Click here to Skip to main content
15,914,943 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionOne big collection or nested collections Pin
waldette 202214-Sep-22 11:35
waldette 202214-Sep-22 11:35 
Hello,

I want to dev an app with users, teachers, students, calendar, scheduler, etc... One user only can access to his own data, never can see other students or calendar of another user (except admin who can access to every data).

I dont know the best model for tthis app with mongodb. What is better:

1. Do every table as a little collection and put a userid key on every table

2. Do one big collection for every user and nested documents or collections for.every table.

What is the best options for a good scalable and performance?

Thanks, i hope u can gelp.me

AnswerRe: One big collection or nested collections Pin
Pete O'Hanlon14-Sep-22 20:54
mvePete O'Hanlon14-Sep-22 20:54 
GeneralRe: One big collection or nested collections Pin
waldette 202215-Sep-22 6:13
waldette 202215-Sep-22 6:13 
QuestionPinch zoom in zoom out in js Pin
madhuri jawadekar11-Sep-22 20:01
madhuri jawadekar11-Sep-22 20:01 
Questionhow to make campaign windows Pin
Member 157551811-Sep-22 20:22
Member 157551811-Sep-22 20:22 
AnswerRe: how to make campaign windows Pin
Richard MacCutchan1-Sep-22 22:02
mveRichard MacCutchan1-Sep-22 22:02 
AnswerRe: how to make campaign windows Pin
Dave Kreskowiak2-Sep-22 12:56
mveDave Kreskowiak2-Sep-22 12:56 
QuestionIs there a way to input a unique number for each array output? Pin
machinewraith31-Aug-22 15:46
machinewraith31-Aug-22 15:46 
AnswerRe: Is there a way to input a unique number for each array output? Pin
Richard Deeming1-Sep-22 22:23
mveRichard Deeming1-Sep-22 22:23 
Questionjavascript looping pattern question Pin
ravindra Yadav 202213-Aug-22 1:22
ravindra Yadav 202213-Aug-22 1:22 
AnswerRe: javascript looping pattern question Pin
Richard MacCutchan13-Aug-22 1:31
mveRichard MacCutchan13-Aug-22 1:31 
QuestionJavascript Pin
User 1567076229-Jul-22 0:20
User 1567076229-Jul-22 0:20 
AnswerRe: Javascript Fibonacci sequence Pin
Richard MacCutchan29-Jul-22 3:28
mveRichard MacCutchan29-Jul-22 3:28 
RantRe: Javascript Pin
Richard Deeming1-Aug-22 0:29
mveRichard Deeming1-Aug-22 0:29 
QuestionI need help in defining and calling Static variable in Typescript. Pin
Afi_sh26-Jul-22 5:01
Afi_sh26-Jul-22 5:01 
AnswerRe: I need help in defining and calling Static variable in Typescript. Pin
Jeremy Falcon26-Oct-22 11:41
professionalJeremy Falcon26-Oct-22 11:41 
QuestionNew to Coding Pin
John Wiser25-Jul-22 3:05
John Wiser25-Jul-22 3:05 
AnswerRe: New to Coding Pin
Richard MacCutchan25-Jul-22 3:10
mveRichard MacCutchan25-Jul-22 3:10 
GeneralRe: New to Coding Pin
John Wiser25-Jul-22 9:44
John Wiser25-Jul-22 9:44 
AnswerRe: New to Coding Pin
Jeremy Falcon26-Oct-22 11:49
professionalJeremy Falcon26-Oct-22 11:49 
QuestionI need help with a task Pin
User 1567076221-Jul-22 11:35
User 1567076221-Jul-22 11:35 
AnswerRe: I need help with a task Pin
jeron121-Jul-22 11:56
jeron121-Jul-22 11:56 
GeneralRe: I need help with a task Pin
jsc4225-Jul-22 4:11
professionaljsc4225-Jul-22 4:11 
QuestionI need help with an Javascript exercise! Pin
User 1567076215-Jul-22 20:39
User 1567076215-Jul-22 20:39 
GeneralRe: I need help with an Javascript exercise! Pin
Richard MacCutchan15-Jul-22 21:29
mveRichard MacCutchan15-Jul-22 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.