FollowingRelationship storage & performance optimizations (state turned ecto_enum-driven integer, reorganized indices etc.).

This commit is contained in:
Ivan Tashkinov 2020-03-28 18:49:03 +03:00
commit be9d18461a
17 changed files with 128 additions and 45 deletions

View file

@ -11,3 +11,9 @@ defenum(UserRelationshipTypeEnum,
notification_mute: 4,
inverse_subscription: 5
)
defenum(FollowingRelationshipStateEnum,
follow_pending: 1,
follow_accept: 2,
follow_reject: 3
)