-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
854 persistent storage of dataset dependencies graph (#973)
Dependency graph service moved to 'datasets' domain. Defined dataset dependency repository interface and created 3 implementations. No more postponed initialization, organized initial setup in the form of an indexer. Added telemetry extensions on the way. Tests for repositories, stabilized other tests. Cascading effect on delete within the dataset entry domain.
- Loading branch information
1 parent
9bbce44
commit 5f42df4
Showing
94 changed files
with
2,273 additions
and
528 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
migrations/postgres/20241125193114_dataset_dependencies.sql
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,18 @@ | ||
/* ------------------------------ */ | ||
|
||
CREATE TABLE dataset_dependencies | ||
( | ||
upstream_dataset_id VARCHAR(100) NOT NULL REFERENCES dataset_entries(dataset_id) ON DELETE CASCADE, | ||
downstream_dataset_id VARCHAR(100) NOT NULL REFERENCES dataset_entries(dataset_id) ON DELETE CASCADE | ||
); | ||
|
||
CREATE UNIQUE INDEX idx_dataset_dependencies | ||
ON dataset_dependencies (upstream_dataset_id, downstream_dataset_id); | ||
|
||
CREATE INDEX idx_dataset_dependencies_upstream_dataset_id | ||
ON dataset_dependencies(upstream_dataset_id); | ||
|
||
CREATE INDEX idx_dataset_dependencies_downstream_dataset_id | ||
ON dataset_dependencies (downstream_dataset_id); | ||
|
||
/* ------------------------------ */ |
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,18 @@ | ||
/* ------------------------------ */ | ||
|
||
CREATE TABLE dataset_dependencies | ||
( | ||
upstream_dataset_id VARCHAR(100) NOT NULL REFERENCES dataset_entries(dataset_id) ON DELETE CASCADE, | ||
downstream_dataset_id VARCHAR(100) NOT NULL REFERENCES dataset_entries(dataset_id) ON DELETE CASCADE | ||
); | ||
|
||
CREATE UNIQUE INDEX idx_dataset_dependencies | ||
ON dataset_dependencies (upstream_dataset_id, downstream_dataset_id); | ||
|
||
CREATE INDEX idx_dataset_dependencies_upstream_dataset_id | ||
ON dataset_dependencies(upstream_dataset_id); | ||
|
||
CREATE INDEX idx_dataset_dependencies_downstream_dataset_id | ||
ON dataset_dependencies (downstream_dataset_id); | ||
|
||
/* ------------------------------ */ |
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
Oops, something went wrong.