mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-09-09 16:08:49 -06:00
![Dessalines](/assets/img/avatar_default.png)
- Added more indexes to account for sorting by stickied first. - Changed all order bys in the diesel views to use post_aggregates.
12 lines
366 B
SQL
12 lines
366 B
SQL
-- post aggregates
|
|
drop table post_aggregates;
|
|
drop trigger post_aggregates_post on post;
|
|
drop trigger post_aggregates_comment_count on comment;
|
|
drop trigger post_aggregates_score on post_like;
|
|
drop trigger post_aggregates_stickied on post;
|
|
drop function
|
|
post_aggregates_post,
|
|
post_aggregates_comment_count,
|
|
post_aggregates_score,
|
|
post_aggregates_stickied;
|