Skip to content

Commit

Permalink
test: update duration
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark committed Nov 6, 2024
1 parent 0552549 commit 49b5f30
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const testCases: {
},
{
limit: 20,
duration: 30000,
duration: 60000,
rps: 50,
seconds: 60,
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
-- +goose up
CREATE TABLE ratelimits.ratelimits_last_used_v1
(
time Int64,
workspace_id String,
namespace_id String,
identifier String,

)
ENGINE = AggregatingMergeTree()
ORDER BY (workspace_id, namespace_id, time, identifier)
;



CREATE MATERIALIZED VIEW ratelimits.ratelimits_last_used_mv_v1
TO ratelimits.ratelimits_last_used_v1
AS
Expand All @@ -16,4 +30,5 @@ GROUP BY


-- +goose down
DROP VIEW ratelimits.ratelimits_last_used_mv_v1;
DROP VIEW IF EXISTS ratelimits.ratelimits_last_used_mv_v1;
DROP TABLE IF EXISTS ratelimits.ratelimits_last_used_v1;

0 comments on commit 49b5f30

Please sign in to comment.