Merge pull request #324 from odysseusinc/issue-313-create_varchar_index_on_concept
index for concept_id as varchar was added
This commit is contained in:
commit
2d43c51de5
|
@ -198,6 +198,7 @@ CREATE INDEX idx_concept_code ON concept (concept_code ASC);
|
|||
CREATE INDEX idx_concept_vocabluary_id ON concept (vocabulary_id ASC);
|
||||
CREATE INDEX idx_concept_domain_id ON concept (domain_id ASC);
|
||||
CREATE INDEX idx_concept_class_id ON concept (concept_class_id ASC);
|
||||
CREATE INDEX idx_concept_id_varchar ON concept (TO_CHAR(concept_id ));
|
||||
|
||||
BEGIN
|
||||
EXECUTE IMMEDIATE 'CREATE UNIQUE INDEX idx_vocabulary_vocabulary_id ON vocabulary (vocabulary_id ASC)';
|
||||
|
|
|
@ -192,6 +192,7 @@ CREATE INDEX idx_concept_code ON concept (concept_code ASC);
|
|||
CREATE INDEX idx_concept_vocabluary_id ON concept (vocabulary_id ASC);
|
||||
CREATE INDEX idx_concept_domain_id ON concept (domain_id ASC);
|
||||
CREATE INDEX idx_concept_class_id ON concept (concept_class_id ASC);
|
||||
CREATE INDEX idx_concept_id_varchar ON concept (CAST(concept_id AS VARCHAR));
|
||||
|
||||
CREATE UNIQUE CLUSTERED INDEX idx_vocabulary_vocabulary_id ON vocabulary (vocabulary_id ASC);
|
||||
|
||||
|
|
|
@ -190,6 +190,7 @@ CREATE INDEX idx_concept_code ON concept (concept_code ASC);
|
|||
CREATE INDEX idx_concept_vocabluary_id ON concept (vocabulary_id ASC);
|
||||
CREATE INDEX idx_concept_domain_id ON concept (domain_id ASC);
|
||||
CREATE INDEX idx_concept_class_id ON concept (concept_class_id ASC);
|
||||
CREATE INDEX idx_concept_id_varchar ON concept (CAST(concept_id AS VARCHAR));
|
||||
|
||||
CREATE UNIQUE INDEX idx_vocabulary_vocabulary_id ON vocabulary (vocabulary_id ASC);
|
||||
CLUSTER vocabulary USING idx_vocabulary_vocabulary_id ;
|
||||
|
|
|
@ -191,6 +191,7 @@ CREATE INDEX idx_concept_code ON concept (concept_code ASC);
|
|||
CREATE INDEX idx_concept_vocabluary_id ON concept (vocabulary_id ASC);
|
||||
CREATE INDEX idx_concept_domain_id ON concept (domain_id ASC);
|
||||
CREATE INDEX idx_concept_class_id ON concept (concept_class_id ASC);
|
||||
CREATE INDEX idx_concept_id_varchar ON concept (CAST(concept_id AS VARCHAR));
|
||||
|
||||
CREATE UNIQUE CLUSTERED INDEX idx_vocabulary_vocabulary_id ON vocabulary (vocabulary_id ASC);
|
||||
|
||||
|
|
Loading…
Reference in New Issue