-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added provenance pulse web app endpoints and db cache
- Loading branch information
Showing
21 changed files
with
1,218 additions
and
30 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
database/src/main/resources/db/migration/V1_98__Pulse_cache.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,12 @@ | ||
CREATE TABLE IF NOT EXISTS pulse_cache | ||
( | ||
id SERIAL PRIMARY KEY, | ||
cache_date DATE NOT NULL, | ||
updated_timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
type TEXT NOT NULL, | ||
data JSONB NOT NULL | ||
); | ||
|
||
CREATE INDEX IF NOT EXISTS idx_pulse_cache_date ON pulse_cache (cache_date); | ||
CREATE INDEX IF NOT EXISTS idx_pulse_cache_type ON pulse_cache (type); | ||
CREATE UNIQUE INDEX IF NOT EXISTS idx_pulse_cache_date_type ON pulse_cache (cache_date, type); |
6 changes: 6 additions & 0 deletions
6
database/src/main/resources/db/migration/V1_99__Pulse_cache_subtype.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,6 @@ | ||
ALTER TABLE pulse_cache | ||
ADD COLUMN subtype TEXT; | ||
|
||
CREATE INDEX IF NOT EXISTS idx_pulse_cache_subtype ON pulse_cache (subtype); | ||
DROP INDEX IF EXISTS idx_pulse_cache_date_type; | ||
CREATE UNIQUE INDEX IF NOT EXISTS idx_pulse_cache_date_type_subtype ON pulse_cache (cache_date, type, subtype); |
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
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.