-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* table for storing cached times temporarily in personal schema for ease of testing * store the whole results object trading space for speed in setting this up, for now * return cached values * set up for caching * store cache * try all table interactions just in case something ever breaks, I don't want to be dependent on caching
- Loading branch information
1 parent
25296c8
commit 6fc11be
Showing
3 changed files
with
50 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE nwessel.cached_travel_times ( | ||
uri_string text CHECK(uri_string ~ '^\/\d+\/\d+\/\d{1,2}\/\d{1,2}\/\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}\/(true|false)\/[1-7]{1,7}$'), | ||
commit_hash text, | ||
results jsonb NOT NULL, | ||
PRIMARY KEY (uri_string, commit_hash) | ||
); | ||
|
||
GRANT SELECT, INSERT ON nwessel.cached_travel_times TO tt_request_bot; |