mirror of
https://github.com/block/buzz.git
synced 2026-10-28 13:01:10 +00:00
perf(db): index operator listener match claims
Signed-off-by: Jarrod Sibbison <jsibbison@squareup.com>
This commit is contained in:
@@ -29,6 +29,9 @@ CREATE INDEX operator_listener_match_queue_due
|
||||
CREATE INDEX operator_listener_match_queue_recovery
|
||||
ON operator_listener_match_queue (lease_until)
|
||||
WHERE state = 'matching';
|
||||
CREATE INDEX operator_listener_match_queue_claim
|
||||
ON operator_listener_match_queue (claim_id)
|
||||
WHERE state = 'matching';
|
||||
|
||||
CREATE TABLE operator_listener_outbox (
|
||||
id UUID NOT NULL PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
|
||||
@@ -947,6 +947,9 @@ CREATE INDEX operator_listener_match_queue_due
|
||||
CREATE INDEX operator_listener_match_queue_recovery
|
||||
ON operator_listener_match_queue (lease_until)
|
||||
WHERE state = 'matching';
|
||||
CREATE INDEX operator_listener_match_queue_claim
|
||||
ON operator_listener_match_queue (claim_id)
|
||||
WHERE state = 'matching';
|
||||
|
||||
CREATE TABLE operator_listener_outbox (
|
||||
id UUID NOT NULL PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
|
||||
Reference in New Issue
Block a user