Skip to content

Commit

Permalink
store the whole results object
Browse files Browse the repository at this point in the history
trading space for speed in setting this up, for now
  • Loading branch information
Nate-Wessel committed Dec 12, 2024
1 parent ad7cad1 commit bcf77ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/tables/travel_time_cache.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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,
travel_time_seconds real NOT NULL CHECK(travel_time_seconds > 0),
results jsonb NOT NULL,
PRIMARY KEY (uri_string, commit_hash)
);

Expand Down

0 comments on commit bcf77ff

Please sign in to comment.