mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-28 14:52:28 +03:00
999974893c
## 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> |
||
---|---|---|
.. | ||
twenty-chrome-extension | ||
twenty-docker | ||
twenty-e2e-testing | ||
twenty-emails | ||
twenty-front | ||
twenty-postgres | ||
twenty-server | ||
twenty-ui | ||
twenty-utils | ||
twenty-website | ||
twenty-zapier |