added index on (person_id, read) on post actions where read is not null

This commit is contained in:
lseeger 2024-12-15 16:28:15 +01:00
parent 841d98dcb0
commit 0ce7d4e12a
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1 @@
DROP idx_post_actions_on_read_read_not_null;

View file

@ -0,0 +1,3 @@
CREATE INDEX idx_post_actions_on_read_read_not_null ON post_actions (person_id, read)
WHERE
read IS NOT NULL;