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

⚡️(api) use background tasks in /dynamique (bulk) create endpoints #389

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

jmaupetit
Copy link
Member

Purpose

Improve query duration for /dynamique creation endpoint by using background tasks as early as possible.

Proposal

  • perform database insertions after the API responds with expected object(s) UUID(s)

@jmaupetit jmaupetit self-assigned this Feb 11, 2025
@jmaupetit jmaupetit added improvement needs review API Item related to the API service labels Feb 11, 2025
@jmaupetit
Copy link
Member Author

Combined to #383, this work should be a workaround for issue #359

Improve query duration for /dynamique creation endpoint by using
background tasks as early as possible. Database insertions are performed
after the API responds.
@jmaupetit jmaupetit force-pushed the api-background-tasks branch from f599432 to af404a1 Compare February 11, 2025 16:18
@jmaupetit jmaupetit requested a review from ssorin February 11, 2025 16:26
@MTES-MCT MTES-MCT deleted a comment from github-actions bot Feb 11, 2025
@jmaupetit jmaupetit merged commit 80881fe into main Feb 12, 2025
15 checks passed
@jmaupetit jmaupetit deleted the api-background-tasks branch February 12, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Item related to the API service improvement needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants