Skip to content

Commit

Permalink
feat: add index for documentation ts_vector
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Hivert <[email protected]>
  • Loading branch information
ghivert committed May 18, 2024
1 parent 68ec71d commit 19a610d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- migrate:up
create index package_type_fun_signature_documentation on package_type_fun_signature using gin (to_tsvector('english', documentation));

-- migrate:down
drop index package_type_fun_signature_documentation;
10 changes: 9 additions & 1 deletion apps/backend/db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,13 @@ ALTER TABLE ONLY public.schema_migrations
ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version);


--
-- Name: package_type_fun_signature_documentation; Type: INDEX; Schema: public; Owner: -
--

CREATE INDEX package_type_fun_signature_documentation ON public.package_type_fun_signature USING gin (to_tsvector('english'::regconfig, documentation));


--
-- Name: package_type_fun_signature_name; Type: INDEX; Schema: public; Owner: -
--
Expand Down Expand Up @@ -477,4 +484,5 @@ INSERT INTO public.schema_migrations (version) VALUES
('20240512211227'),
('20240512214036'),
('20240514214138'),
('20240517083006');
('20240517083006'),
('20240518232212');

0 comments on commit 19a610d

Please sign in to comment.