-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skills data modelling #9
Comments
@Mir-SA Please tag 'feature owner' and 'Application owner' so that they will share their opinion. |
What is
|
Can we have this issue ticket synced with the PR? |
i'm thinking of using that model to store IDs of all usertags(skills) |
Shouldn't it be an array then? tag: [tag1, tag2, ...]; |
it can be but document size is limited to 1MB so if array grows quickly next write to doc will fail |
It shouldn't unless you have 13k tag for that user only considering it takes 80bytes for the tagID. Also, making
won't make it any difference as the space consumption is same. But yeah, having object is prefered over array. I would suggest
Mainly, cause querying would look something like |
agree. i had pointed that out in previous pr #7 (comment) and had some array-based & collection based approach but we eliminated all array appraoches. check previous edit in doc #9 (comment)
maps are just as inefficient with space as array :/ |
then we can update the level of that particular tag here only and we do need to create multiple tags for different skill levels
|
I think it would be better to store Skill Level, Tasks completed & any metadata about Skills in Tags collection since it particularly for diff type of Tags whereas UserTags is for tags related to user & it is only there to create link between user & their Tags |
Closing this in favor of the skill-tree feature |
Data Models:
UserTags
will contain the skills of users by a reference to their TagID & UserIDUserTags
can also be used to store user contextual data.Requirements
The text was updated successfully, but these errors were encountered: