forked from nrwl/nx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add sqlite db for nx (nrwl#26891)
## Current Behavior <!-- This is the behavior we have today --> Nx has some persistent storage managed as separate files on disk. For example, the local cache queries the file system for existing directories. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Nx has a new more performant persistent storage via SQLite database. The db is used for the following purposes now: 1. Storing task details of different hashes (This serves as reference for other tables to get more information about a hash) 2. Storing a record of cached artifacts 3. Storing a history of tasks which have run The cache in particular has the following benefits: * It's faster, YMMV but it's definitely faster because it writes and reads less from disk. * It's able to track access of different cached artifacts * It purges cached artifacts more intelligently by looking at when artifacts were last ACCESSED rather than when they were CREATED. This will also eliminate cache misses due to the cached artifacts being purged simply because they were CREATED. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
- Loading branch information
1 parent
9269de7
commit cade5bc
Showing
42 changed files
with
1,559 additions
and
344 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.