follower-groupby
Some checks failed
Deploy on push / deploy (push) Failing after 9s

This commit is contained in:
Untone 2024-08-07 18:03:30 +03:00
parent 64e0e0ce79
commit fb687d50dd
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
[0.4.3]
- cache reimplemented
- shouts queries improved, views separated
- load shouts queries unified
- followers_stat
[0.4.2]
- reactions load resolvers separated for ratings (no stats) and comments

View File

@ -98,7 +98,7 @@ def query_shouts():
.outerjoin(authors_subquery, authors_subquery.c.shout_id == Shout.id)
.outerjoin(topics_subquery, topics_subquery.c.shout_id == Shout.id)
.where(and_(Shout.published_at.is_not(None), Shout.deleted_at.is_(None)))
.group_by(Shout.id, authors_subquery.c.authors, topics_subquery.c.topics)
.group_by(Shout.id, authors_subquery.c.authors, topics_subquery.c.topics, ShoutReactionsFollower.follower)
)
return q, aliased_reaction