-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2839: fix(sdf): builtins on transactions, skip dependent values update for builtins r=zacharyhamm a=zacharyhamm Two changes: 1. Install each builtin on its own Postgres connection so they run truly concurrently. 2. Skip dependent values updates on builtin installation for near-instant builtin creation. I can't figure out a reason to execute dependent value update jobs on builtin creation. If there is a value that needs to exist on an attribute for a schema variant in the default context, we can pre-execute the function during authoring to produce a default value for that attribute, or explicitly set the default value. Otherwise, every value computed by a function will be properly computed when the component is created, and this is the context where we care about computing the most up to date values in any case. This makes builtin installation take about 30 seconds, which is a huge win to me versus any desire we might have to execute the dependent value update jobs for the schema variants themselves, before a component is created. Co-authored-by: Zachary Hamm <[email protected]>
- Loading branch information
Showing
4 changed files
with
65 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters