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

[Task] Implement insertMany in mongo doc creation. #504

Closed
jonas-martinez opened this issue Dec 4, 2023 · 1 comment · Fixed by #505 or lenra-io/api#12
Closed

[Task] Implement insertMany in mongo doc creation. #504

jonas-martinez opened this issue Dec 4, 2023 · 1 comment · Fixed by #505 or lenra-io/api#12
Assignees
Labels
enhancement New feature or request

Comments

@jonas-martinez
Copy link
Collaborator

jonas-martinez commented Dec 4, 2023

What should be done

Linked to #574
To solve some performance issues we might find useful to implement the insertMany for mongo document creation which will help reduce the number of requests between the app, the server and the DB. I don't think that I need to explain why so if anyone needs more detail, I will take the time to add some.

Technical recommandation

It is possible that the server will undergo a power spike when trying to insert a very large amount of documents at once using this feature. The network might also be an issue. We might want to apply a maximum size for the data sent by the app.

Ecological concerns

This is good for ecological reasons because it reduces the number of requests between the app and the server.

Is this task linked with any other ?

#574

@jonas-martinez jonas-martinez added the enhancement New feature or request label Dec 4, 2023
@github-project-automation github-project-automation bot moved this to 🟣 Need triage in Lenra Dec 4, 2023
@jonas-martinez jonas-martinez moved this from 🟣 Need triage to ⚪ Todo in Lenra Dec 4, 2023
@jonas-martinez jonas-martinez moved this from ⚪ Todo to 🟢 In Progress in Lenra Dec 4, 2023
@taorepoara
Copy link
Member

Don't forget to add it to the API project and update the app-lib projects

@jonas-martinez jonas-martinez moved this from 🟢 In Progress to 🔵 In Review in Lenra Dec 6, 2023
@jonas-martinez jonas-martinez moved this from 🔵 In Review to 🟢 In Progress in Lenra Dec 6, 2023
@jonas-martinez jonas-martinez moved this from 🟢 In Progress to 🔵 In Review in Lenra Dec 12, 2023
@taorepoara taorepoara moved this from 🔵 In Review to ⚪ Todo in Lenra Dec 19, 2023
@taorepoara taorepoara removed their assignment Jan 3, 2024
@jonas-martinez jonas-martinez moved this from ⚪ Todo to 🔵 In Review in Lenra Jan 14, 2024
@github-project-automation github-project-automation bot moved this from 🔵 In Review to ⚫ Done in Lenra Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants