diff options
author | rinpatch <rinpatch@sdf.org> | 2020-05-27 13:45:14 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-27 13:45:14 +0000 |
commit | 91f73a7592049ffe2b1a99e86c6f4ee51218c768 (patch) | |
tree | 426d8723021aa80c8c85183b9a443468de205127 /priv | |
parent | b9e2678b9e1223f354d3a00a8c31b50807d8da62 (diff) | |
parent | 73f222d76a03e7bfad1aae80e0dc9d2777a94f3e (diff) | |
download | pleroma-91f73a7592049ffe2b1a99e86c6f4ee51218c768.tar.gz |
Merge branch 'notification-fixes' into 'develop'
Notification performance fixes
See merge request pleroma/pleroma!2595
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20200527104138_change_notification_user_index.exs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/priv/repo/migrations/20200527104138_change_notification_user_index.exs b/priv/repo/migrations/20200527104138_change_notification_user_index.exs new file mode 100644 index 000000000..4dcfe6de9 --- /dev/null +++ b/priv/repo/migrations/20200527104138_change_notification_user_index.exs @@ -0,0 +1,8 @@ +defmodule Pleroma.Repo.Migrations.ChangeNotificationUserIndex do + use Ecto.Migration + + def change do + drop_if_exists(index(:notifications, [:user_id])) + create_if_not_exists(index(:notifications, [:user_id, "id desc nulls last"])) + end +end |