From da5b89b30caeb3e8e0a4748dda69727aa1a80002 Mon Sep 17 00:00:00 2001 From: SneedBot Date: Tue, 24 Jan 2023 12:00:08 +0000 Subject: [PATCH] sneed --- schema.sql | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/schema.sql b/schema.sql index c6e8716e1..c241637dc 100644 --- a/schema.sql +++ b/schema.sql @@ -1654,6 +1654,13 @@ CREATE INDEX cflag_user_idx ON public.commentflags USING btree (user_id); CREATE INDEX comment_is_banned_idx ON public.comments USING btree (is_banned); +-- +-- Name: comment_new_sort_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX comment_new_sort_idx ON public.comments USING btree (is_banned, deleted_utc, created_utc DESC, over_18); + + -- -- Name: comment_parent_index; Type: INDEX; Schema: public; Owner: - -- @@ -1675,6 +1682,20 @@ CREATE INDEX comment_post_id_index ON public.comments USING btree (parent_submis CREATE INDEX comments_body_ts_idx ON public.comments USING gin (body_ts); +-- +-- Name: comments_created_utc_asc_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX comments_created_utc_asc_idx ON public.comments USING btree (created_utc NULLS FIRST); + + +-- +-- Name: comments_created_utc_desc_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX comments_created_utc_desc_idx ON public.comments USING btree (created_utc DESC); + + -- -- Name: comments_user_index; Type: INDEX; Schema: public; Owner: - --