Skip to content
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

Define Adapt structure via friendly ID #39

Open
1 task done
Tracked by #12
chris-steele opened this issue Oct 15, 2024 · 0 comments
Open
1 task done
Tracked by #12

Define Adapt structure via friendly ID #39

chris-steele opened this issue Oct 15, 2024 · 0 comments
Labels
enhancement New or additional functionality high priority Should be prioritised over all other issues

Comments

@chris-steele
Copy link
Contributor

chris-steele commented Oct 15, 2024

Feature description

The relationships between Adapt models (components, blocks etc) is described using MongoDB's ObjectIDs (via _parentId). At the moment this requires that the parent exists before the child can be inserted.

If we instead used _friendlyId to describe these relationships then inserts could be done concurrently. This would speed up import and content copy (clone) by reducing DB calls and HTTP requests (if DB is accessed over a network). It would also make casual analysis of DB tables easier during development.

N.B. would require #40

Can you work on this feature?

  • I can contribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New or additional functionality high priority Should be prioritised over all other issues
Projects
Development

No branches or pull requests

2 participants