mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 11:21:32 +00:00
parent
2ac6e1a463
commit
6b1894faf0
3 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,7 @@ impl CommunityFollowerView {
|
||||||
Person::safe_columns_tuple(),
|
Person::safe_columns_tuple(),
|
||||||
))
|
))
|
||||||
.filter(community_follower::community_id.eq(community_id))
|
.filter(community_follower::community_id.eq(community_id))
|
||||||
|
.order_by(community::title)
|
||||||
.load::<CommunityFollowerViewTuple>(conn)?;
|
.load::<CommunityFollowerViewTuple>(conn)?;
|
||||||
|
|
||||||
Ok(Self::from_tuple_to_vec(res))
|
Ok(Self::from_tuple_to_vec(res))
|
||||||
|
@ -42,6 +43,7 @@ impl CommunityFollowerView {
|
||||||
Person::safe_columns_tuple(),
|
Person::safe_columns_tuple(),
|
||||||
))
|
))
|
||||||
.filter(community_follower::person_id.eq(person_id))
|
.filter(community_follower::person_id.eq(person_id))
|
||||||
|
.order_by(community::title)
|
||||||
.load::<CommunityFollowerViewTuple>(conn)?;
|
.load::<CommunityFollowerViewTuple>(conn)?;
|
||||||
|
|
||||||
Ok(Self::from_tuple_to_vec(res))
|
Ok(Self::from_tuple_to_vec(res))
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
drop index idx_community_title;
|
|
@ -0,0 +1 @@
|
||||||
|
create index idx_community_title on community(title);
|
Loading…
Reference in a new issue