perf: sync protocol and core hardening updates
This commit is contained in:
parent
152fed3b87
commit
4390ebf5a9
283 changed files with 29231 additions and 2295 deletions
|
|
@ -0,0 +1,16 @@
|
|||
CREATE INDEX IF NOT EXISTS dispatch_outbox_pending_ready_idx
|
||||
ON dispatch_outbox (next_attempt_at, target_user_id, pts, id)
|
||||
WHERE status = 'pending';
|
||||
|
||||
CREATE INDEX IF NOT EXISTS dispatch_outbox_dispatching_stale_ready_idx
|
||||
ON dispatch_outbox (updated_at, target_user_id, pts, id)
|
||||
WHERE status = 'dispatching';
|
||||
|
||||
CREATE INDEX IF NOT EXISTS dispatch_outbox_user_heads_shard_idx
|
||||
ON dispatch_outbox_user_heads (logical_shard, target_user_id);
|
||||
|
||||
ALTER TABLE dispatch_outbox_user_heads
|
||||
DROP CONSTRAINT IF EXISTS dispatch_outbox_user_heads_outbox_fkey;
|
||||
|
||||
DROP INDEX IF EXISTS dispatch_outbox_user_heads_dispatching_shard_idx;
|
||||
DROP INDEX IF EXISTS dispatch_outbox_user_heads_pending_shard_idx;
|
||||
Loading…
Add table
Add a link
Reference in a new issue