-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(server): add both
serial
and parallel
modes for seed
- Loading branch information
1 parent
6937194
commit 53c8e88
Showing
5 changed files
with
106 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export interface RebuildOptions { | ||
/** | ||
* Whether the resources should be created in parallel. | ||
* | ||
* **WARNING: Can be CPU intensive and/or clog up the connection pool.** | ||
*/ | ||
parallel: boolean; | ||
} | ||
|
||
const defaultOptions = { | ||
parallel: false, | ||
}; | ||
|
||
export function buildRebuildOptions(options?: Partial<RebuildOptions>): RebuildOptions { | ||
return { ...defaultOptions, ...options }; | ||
} |
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