IO-3096 Add indexes for notifications.
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
DROP INDEX IF EXISTS "public"."notificiations_idx_jobs";
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
CREATE INDEX "notificiations_idx_jobs" on
|
||||||
|
"public"."notifications" using btree ("jobid");
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
DROP INDEX IF EXISTS "public"."notifications_idx_associations";
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
CREATE INDEX "notifications_idx_associations" on
|
||||||
|
"public"."notifications" using btree ("associationid");
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
-- Could not auto-generate a down migration.
|
||||||
|
-- Please write an appropriate down migration for the SQL below:
|
||||||
|
-- CREATE INDEX idx_notifications_created_at_not_read ON notifications(created_at desc, read) where read is null;
|
||||||
1
hasura/migrations/1741904614090_run_sql_migration/up.sql
Normal file
1
hasura/migrations/1741904614090_run_sql_migration/up.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
CREATE INDEX idx_notifications_created_at_not_read ON notifications(created_at desc, read) where read is null;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
-- Could not auto-generate a down migration.
|
||||||
|
-- Please write an appropriate down migration for the SQL below:
|
||||||
|
-- CREATE INDEX idx_notifications_associations_not_read ON notifications(associationid, read) where read is null;
|
||||||
1
hasura/migrations/1741904805838_run_sql_migration/up.sql
Normal file
1
hasura/migrations/1741904805838_run_sql_migration/up.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
CREATE INDEX idx_notifications_associations_not_read ON notifications(associationid, read) where read is null;
|
||||||
Reference in New Issue
Block a user