Not rebuilding indexes which had no changes.

fix_post_aggregates_indexes
Dessalines 3 weeks ago
parent b555895cd9
commit 155e5bf7e9

@ -58,12 +58,6 @@ DROP INDEX idx_post_aggregates_featured_local_scaled;
DROP INDEX idx_post_aggregates_featured_local_score;
DROP INDEX idx_post_aggregates_nonzero_hotrank;
DROP INDEX idx_post_aggregates_published;
DROP INDEX idx_post_aggregates_published_asc;
CREATE INDEX idx_post_aggregates_community_active ON public.post_aggregates USING btree (community_id, featured_local DESC, hot_rank_active DESC, published DESC);
CREATE INDEX idx_post_aggregates_community_controversy ON public.post_aggregates USING btree (community_id, featured_local DESC, controversy_rank DESC);
@ -124,10 +118,3 @@ CREATE INDEX idx_post_aggregates_featured_local_scaled ON public.post_aggregates
CREATE INDEX idx_post_aggregates_featured_local_score ON public.post_aggregates USING btree (featured_local DESC, score DESC, published DESC);
CREATE INDEX idx_post_aggregates_nonzero_hotrank ON public.post_aggregates USING btree (published DESC)
WHERE ((hot_rank <> (0)::double precision) OR (hot_rank_active <> (0)::double precision));
CREATE INDEX idx_post_aggregates_published ON public.post_aggregates USING btree (published DESC);
CREATE INDEX idx_post_aggregates_published_asc ON public.post_aggregates USING btree (public.reverse_timestamp_sort (published) DESC);

@ -59,12 +59,6 @@ DROP INDEX idx_post_aggregates_featured_local_scaled;
DROP INDEX idx_post_aggregates_featured_local_score;
DROP INDEX idx_post_aggregates_nonzero_hotrank;
DROP INDEX idx_post_aggregates_published;
DROP INDEX idx_post_aggregates_published_asc;
CREATE INDEX idx_post_aggregates_community_active ON public.post_aggregates USING btree (community_id, featured_local DESC, hot_rank_active DESC, published DESC, post_id DESC);
CREATE INDEX idx_post_aggregates_community_controversy ON public.post_aggregates USING btree (community_id, featured_local DESC, controversy_rank DESC, post_id DESC);
@ -125,10 +119,3 @@ CREATE INDEX idx_post_aggregates_featured_local_scaled ON public.post_aggregates
CREATE INDEX idx_post_aggregates_featured_local_score ON public.post_aggregates USING btree (featured_local DESC, score DESC, published DESC, post_id DESC);
CREATE INDEX idx_post_aggregates_nonzero_hotrank ON public.post_aggregates USING btree (published DESC)
WHERE ((hot_rank <> (0)::double precision) OR (hot_rank_active <> (0)::double precision));
CREATE INDEX idx_post_aggregates_published ON public.post_aggregates USING btree (published DESC);
CREATE INDEX idx_post_aggregates_published_asc ON public.post_aggregates USING btree (public.reverse_timestamp_sort (published) DESC);

Loading…
Cancel
Save