We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09767db commit bbefcc3Copy full SHA for bbefcc3
backend/supabase/push_subscriptions.sql
@@ -8,3 +8,13 @@ create table push_subscriptions (
8
9
-- Row Level Security
10
ALTER TABLE push_subscriptions ENABLE ROW LEVEL SECURITY;
11
+
12
+-- Indexes
13
+DROP INDEX IF EXISTS user_id_idx;
14
+CREATE INDEX user_id_idx ON push_subscriptions (user_id);
15
16
+DROP INDEX IF EXISTS endpoint_idx;
17
+CREATE INDEX endpoint_idx ON push_subscriptions (endpoint);
18
19
+DROP INDEX IF EXISTS endpoint_user_id_idx;
20
+CREATE INDEX endpoint_user_id_idx ON push_subscriptions (endpoint, user_id);
0 commit comments