FollowingRelationship storage & performance optimizations (state turned `ecto_enum...
authorIvan Tashkinov <ivantashkinov@gmail.com>
Sat, 28 Mar 2020 15:49:03 +0000 (18:49 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Sat, 28 Mar 2020 15:49:03 +0000 (18:49 +0300)
commitbe9d18461a5ed6bd835e2eba8d3b54ba61fc51fb
tree0b5b199feab5cef526d365030213170c99fb9f0f
parent4e81b4b190161ebb0c496c682fa8e1e0c38a3903
FollowingRelationship storage & performance optimizations (state turned `ecto_enum`-driven integer, reorganized indices etc.).
17 files changed:
lib/pleroma/ecto_enums.ex
lib/pleroma/following_relationship.ex
lib/pleroma/user.ex
lib/pleroma/user/query.ex
lib/pleroma/web/activity_pub/mrf.ex
lib/pleroma/web/activity_pub/transmogrifier.ex
lib/pleroma/web/common_api/common_api.ex
lib/pleroma/web/mastodon_api/views/account_view.ex
priv/repo/migrations/20200328124805_change_following_relationships_state_to_integer.exs [new file with mode: 0644]
priv/repo/migrations/20200328130139_add_following_relationships_following_id_index.exs [new file with mode: 0644]
test/following_relationship_test.exs
test/tasks/user_test.exs
test/user_test.exs
test/web/activity_pub/transmogrifier_test.exs
test/web/common_api/common_api_test.exs
test/web/mastodon_api/controllers/follow_request_controller_test.exs
test/web/streamer/streamer_test.exs