forked from IHTSDO/snomed-database-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindexing-postgres.sql
More file actions
22 lines (21 loc) · 1.25 KB
/
indexing-postgres.sql
File metadata and controls
22 lines (21 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- This is the sample indexing script. The indexing should based on the local implementation requirements.
CREATE INDEX description_conceptid_idx ON snomedct.description_f
USING btree (conceptid COLLATE pg_catalog."default");
CREATE INDEX textdefinition_conceptid_idx ON snomedct.textdefinition_f
USING btree (conceptid);
CREATE INDEX relationship_f_idx ON snomedct.relationship_f
USING btree (sourceid, destinationid);
CREATE INDEX stated_relationship_f_idx ON snomedct.stated_relationship_f
USING btree (sourceid, destinationid);
CREATE INDEX langrefset_referencedcomponentid_idx ON snomedct.langrefset_f
USING btree (referencedcomponentid);
CREATE INDEX associationrefset_f_idx ON snomedct.associationrefset_f
USING btree (referencedcomponentid, targetcomponentid);
CREATE INDEX attributevaluerefset_f_idx ON snomedct.attributevaluerefset_f
USING btree (referencedcomponentid, valueid);
CREATE INDEX simplerefset_referencedcomponentid_idx ON snomedct.simplerefset_f
USING btree (referencedcomponentid);
CREATE INDEX complexmaprefset_referencedcomponentid_idx ON snomedct.complexmaprefset_f
USING btree (referencedcomponentid);
CREATE INDEX extendedmaprefset_referencedcomponentid_idx ON snomedct.extendedmaprefset_f
USING btree (referencedcomponentid);