twenty/packages
Weiko 999974893c
Fix race condition with datasource creation (#7106)
## Context
We currently have a race condition when dealing with datasource
creation. This happen when multiple queries arrive at the same time (for
example graphql dataloaders) and the datasource is not created yet.
Since the datasource is stored in memory this can happen more often as
well and they were all triggering the datasource creation at the same
time.

I'm trying to fix the issue with promise memoization. Now, instead of
caching the datasource only, we also want to cache the promise of the
datasource creation and make the creation itself synchronous.

More info about promise memoization in this article for example:
https://www.jonmellman.com/posts/promise-memoization

Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2024-09-18 14:01:55 +02:00
..
twenty-chrome-extension Support for multiple values in the Phone field (#6882) 2024-09-11 11:15:04 +02:00
twenty-docker feat: replace ts-node with tsx and pre-install it globaly in docker (#7027) 2024-09-14 11:05:01 +02:00
twenty-e2e-testing E2E tests (#6717) 2024-08-27 11:07:10 +02:00
twenty-emails 6658 workflows add a first twenty piece email sender (#6965) 2024-09-12 11:00:25 +02:00
twenty-front fix: Tasks page overflows with large title and body (#6970) 2024-09-18 14:00:48 +02:00
twenty-postgres Check if user wants to run make postgres-on-linux (#6819) 2024-09-04 16:58:54 +02:00
twenty-server Fix race condition with datasource creation (#7106) 2024-09-18 14:01:55 +02:00
twenty-ui Introduce ARRAY field type (#6862) 2024-09-16 14:07:55 +02:00
twenty-utils Fix docs build in CI (#5826) 2024-06-11 19:06:37 +02:00
twenty-website Fix contributor script (#7040) 2024-09-16 10:55:20 +02:00
twenty-zapier [Fix] Remove usage of deprecated FieldMetadata type probability (#6279) 2024-07-16 11:36:10 +02:00